Thanks, I Read this..
I tried this now:
getbuffer();
int i;
int div=0;
int DataSent;
i = tcp_write(pcb, SndBuffer , SndBufferLen, 0);
tcp_output(pcb);
while(i == -1){
SndBufferLen /= 2;
div++;
i = tcp_write(pcb, SndBuffer , SndBufferLen, 0);
tcp_output(pcb);
}
DataSent = SndBufferLen;
int j;
int in=0;
for (j=1; j < (div); j++){
in=0;
i = tcp_write(pcb, SndBuffer+DataSent,
SndBufferLen, 0);
tcp_output(pcb);
if (i == 0){
DataSent += SndBufferLen;
}
while(i == -1){
SndBufferLen /= 2;
div++;
i = tcp_write(pcb, SndBuffer+DataSent,
SndBufferLen, 0);
tcp_output(pcb);
in=1;
}
if (in == 1){
DataSent += SndBufferLen;
}
}
But didnt Work too ;/
But thanks again, If u have any suggestion i'll apreciate that!
Diego
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users
