From: hackbard Date: Tue, 16 Nov 2004 10:33:45 +0000 (+0000) Subject: fixed network api bug! added MTU for send and receive (look at src) X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=671974ebcc4df2ea527263aef129b319e5ce53e6;p=my-code%2Fapi.git fixed network api bug! added MTU for send and receive (look at src) --- diff --git a/network/network.c b/network/network.c index dc5164b..0862637 100644 --- a/network/network.c +++ b/network/network.c @@ -255,7 +255,7 @@ int network_send(int fd,unsigned char *data,int datasize) { left=datasize; while(left) { - if((count=write(fd,data+datasize-left,left))==-1) { + if((count=write(fd,data+datasize-left,left