diff options
Diffstat (limited to 'net')
-rwxr-xr-x | net/tcpsend.c | 8 | ||||
-rwxr-xr-x | net/tcpserver.c | 10 | ||||
-rwxr-xr-x | net/udpsend.c | 8 |
3 files changed, 13 insertions, 13 deletions
diff --git a/net/tcpsend.c b/net/tcpsend.c index 13e707c..03ebca7 100755 --- a/net/tcpsend.c +++ b/net/tcpsend.c @@ -1,4 +1,4 @@ -/* x_net_tcpsend.c 20060424 Martin Peach did it based on x_net.c. x_net.c header follows: */ +/* tcpsend.c 20060424 Martin Peach did it based on x_net.c. x_net.c header follows: */ /* Copyright (c) 1997-1999 Miller Puckette. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ @@ -125,7 +125,7 @@ static void tcpsend_send(t_tcpsend *x, t_symbol *s, int argc, t_atom *argv) double timebefore; double timeafter; int late; - char fpath[MAX_PATH]; + char fpath[FILENAME_MAX]; FILE *fptr; #ifdef DEBUG @@ -158,7 +158,7 @@ static void tcpsend_send(t_tcpsend *x, t_symbol *s, int argc, t_atom *argv) else if (argv[i].a_type == A_SYMBOL) { - atom_string(&argv[i], fpath, MAX_PATH); + atom_string(&argv[i], fpath, FILENAME_MAX); #ifdef DEBUG post ("tcpsend fname: %s", fpath); #endif @@ -249,4 +249,4 @@ void tcpsend_setup(void) A_GIMME, 0); } -/* end x_net_tcpsend.c*/ +/* end tcpsend.c */ diff --git a/net/tcpserver.c b/net/tcpserver.c index 97cd577..506f004 100755 --- a/net/tcpserver.c +++ b/net/tcpserver.c @@ -1,6 +1,6 @@ -/* x_net_tcpserver.c Martin Peach 20060511 working version 20060512 */ +/* tcpserver.c Martin Peach 20060511 working version 20060512 */ /* 20060515 works on linux too... */ -/* x_net_tcpserver.c is based on netserver: */ +/* tcpserver.c is based on netserver: */ /* -------------------------- netserver ------------------------------------- */ /* */ /* A server for bidirectional communication from within Pd. */ @@ -255,7 +255,7 @@ static void tcp_server_send_bytes(int client, t_tcpserver *x, int argc, t_atom * double timeafter; int late; int sockfd = x->x_fd[client]; - char fpath[MAX_PATH]; + char fpath[FILENAME_MAX]; FILE *fptr; /* process & send data */ @@ -290,7 +290,7 @@ static void tcp_server_send_bytes(int client, t_tcpserver *x, int argc, t_atom * else if (argv[i].a_type == A_SYMBOL) { - atom_string(&argv[i], fpath, MAX_PATH); + atom_string(&argv[i], fpath, FILENAME_MAX); #ifdef DEBUG post ("%s: fname: %s", objName, fpath); #endif @@ -645,4 +645,4 @@ void tcpserver_setup(void) class_addmethod(tcpserver_class, (t_method)tcpserver_broadcast, gensym("broadcast"), A_GIMME, 0); } -/* end of x_net_tcpserver.c */ +/* end of tcpserver.c */ diff --git a/net/udpsend.c b/net/udpsend.c index d82acf6..2ca7f25 100755 --- a/net/udpsend.c +++ b/net/udpsend.c @@ -1,4 +1,4 @@ -/* x_net_udpsend.c 20060424. Martin Peach did it based on x_net.c. x_net.c header follows: */ +/* udpsend.c 20060424. Martin Peach did it based on x_net.c. x_net.c header follows: */ /* Copyright (c) 1997-1999 Miller Puckette. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ @@ -118,7 +118,7 @@ static void udpsend_send(t_udpsend *x, t_symbol *s, int argc, t_atom *argv) double timebefore; double timeafter; int late; - char fpath[MAX_PATH]; + char fpath[FILENAME_MAX]; FILE *fptr; #ifdef DEBUG @@ -151,7 +151,7 @@ static void udpsend_send(t_udpsend *x, t_symbol *s, int argc, t_atom *argv) else if (argv[i].a_type == A_SYMBOL) { - atom_string(&argv[i], fpath, MAX_PATH); + atom_string(&argv[i], fpath, FILENAME_MAX); #ifdef DEBUG post ("udpsend fname: %s", fpath); #endif @@ -242,5 +242,5 @@ void udpsend_setup(void) A_GIMME, 0); } -/* end x_net_udpsend.c*/ +/* end udpsend.c*/ |