[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: AW: Problem of tcp_writewith more then about 20 kBytes
From: |
Diego |
Subject: |
[lwip-users] Re: AW: Problem of tcp_writewith more then about 20 kBytes |
Date: |
Fri, 10 Dec 2010 21:13:47 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
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] Re: AW: Problem of tcp_write with more then about 20 kBytes, Diego, 2010/12/10
- Re: [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kBytes, Kieran Mansley, 2010/12/10
- [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kBytes, Diego, 2010/12/10
- [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kBytes, Diego, 2010/12/10
- Re: [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kBytes, Kieran Mansley, 2010/12/10
- [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kBytes, Diego, 2010/12/10
- Re: [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kBytes, Kieran Mansley, 2010/12/10
- [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kBytes, Diego, 2010/12/10
- [lwip-users] Re: AW: Problem of tcp_writewith more then about 20 kBytes, Diego, 2010/12/10
- Re: [lwip-users] Re: AW: Problem of tcp_writewith more then about 20 kBytes, Kieran Mansley, 2010/12/10
- [lwip-users] Re: AW: Problem of tcp_writewith more then about 20 kBytes,
Diego <=