Update of /cvsroot/pure-data/externals/ggee/signal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26297
Modified Files: streamin~.c Log Message: Fixed problem when loosing connection under windows
Index: streamin~.c =================================================================== RCS file: /cvsroot/pure-data/externals/ggee/signal/streamin~.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** streamin~.c 5 Mar 2003 21:14:21 -0000 1.3 --- streamin~.c 9 Aug 2004 12:52:25 -0000 1.4 *************** *** 142,146 **** if (x->nbytes == 0) { /* get the new tag */ ret = recv(x->x_socket, (char*) &x->frames[x->framein].tag,sizeof(t_tag),MSG_PEEK); ! if (ret != sizeof(t_tag)) return; ret = recv(x->x_socket, (char*) &x->frames[x->framein].tag,sizeof(t_tag),0);
--- 142,153 ---- if (x->nbytes == 0) { /* get the new tag */ ret = recv(x->x_socket, (char*) &x->frames[x->framein].tag,sizeof(t_tag),MSG_PEEK); ! if (ret != sizeof(t_tag)) { ! #ifdef NT ! sys_closesocket(x->x_socket); ! sys_rmpollfn(x->x_socket); ! x->x_socket = -1; ! #endif ! return; ! } ret = recv(x->x_socket, (char*) &x->frames[x->framein].tag,sizeof(t_tag),0);