Hi, Could the attached patch do nicely the trick?
Regards, Patrice
diff --git a/src/grapple/socket.c b/src/grapple/socket.c index 8b00fde..2cd5913 100644 --- a/src/grapple/socket.c +++ b/src/grapple/socket.c @@ -52,7 +52,7 @@ extern int gethostname (char *, size_t); static int socket_udp2way_connectmessage(socketbuf *); static int socket_udp2way_listener_data_process(socketbuf *, struct sockaddr_in *, - size_t,signed char *,int); + socklen_t,signed char *,int); static int socket_udp2way_reader_data_process(socketbuf *sock, signed char *buf,int datalen); @@ -1479,7 +1479,7 @@ static socket_udp_data *socket_udp_indata_action(socketbuf *sock,int pull) { socket_udp_data *returnval; socket_intchar len; - int sa_len; + socklen_t sa_len; int datalen; //We need to have at least 4 bytes as the length of the data in the packet @@ -1708,7 +1708,7 @@ static int socket_read_listener_inet_udp(socketbuf *sock,int failkill) char quickbuf[1024]; struct sockaddr_in sa; socket_intchar len; - size_t sa_len; + socklen_t sa_len; //Check how much data is there to read #ifdef FIONREAD @@ -1968,7 +1968,7 @@ static int socket_udp2way_read(socketbuf *sock,int failkill) void *buf=0; char quickbuf[1024]; struct sockaddr_in sa; - size_t sa_len; + socklen_t sa_len; //Check how much data is there to read @@ -3527,7 +3527,7 @@ static socketbuf *socket_get_child_socketbuf_sa(socketbuf *sock, //someone may reconnect when we THINK they are already connected static socketbuf *socket_udp2way_listener_create_connection(socketbuf *sock, struct sockaddr_in *sa, - size_t sa_len, + socklen_t sa_len, int port, char *unique) { @@ -3715,7 +3715,7 @@ static int socket_acknowledge_listener_udp_rpacket(socketbuf *sock, //from a client. int socket_udp2way_listener_data_process(socketbuf *sock, struct sockaddr_in *sa, - size_t sa_len, + socklen_t sa_len, signed char *buf,int datalen) { socket_intchar len,val;