Re: [lwip-users] Sending large data problem.

2014-10-03 Thread Sergio R. Caprile
You should read the wiki and check the examples in the contrib tree. TCP can only buffer a certain amount of data, and will not accept anything more. It will send it, and can't send anything else until that data is ACKed. Once that data is ACKed, you will receive a callback in tcp_sent() and then

Re: [lwip-users] Cannot connect to Windows 7 ethernet interface directly or through a hub

2014-10-03 Thread Sergio R. Caprile
I don't have the slightest idea on Windoze, but I happen to know that networking is networking, frames are frames, and hardware is hardware. You are likely to have: * a hardware problem, triggered by the difference in full-duplex/half-duplex and/or 10/100 due to different wiring and PC hardware * a

Re: [lwip-users] lwip minimal example, echo server

2014-10-03 Thread Sergio R. Caprile
OK, here I go... The UN*X examples use a tun/tap device, and there is a specific configuration parameter for different flavors of it. Check the Makefile for this, did you ? #To compile for linux: make ARCH=linux #To compile for cygwin: make ARCH=cygwin #To compile for openbsd: make ARCH=openbsd ARC

[lwip-users] Sending large data problem..

2014-10-03 Thread Nikeah Q
Hello, I'm having a lot of trouble sending large data using TCP. I read that multiple tcp_writes will be required so as a simple test, i've tried this in my tcp accept method: int len = tcp_sndbuf(newpcb); while(sentSize < 8192) { err = tcp_write(newpcb, data, len, 0x01);