|
From: | Eric Shufro |
Subject: | [lwip-users] pcb's |
Date: | Thu, 7 Oct 2004 13:32:47 -0400 |
Can the same pcb be used for an incoming as well as an outgoing
tcp connection, or do separate pcb’s need to be created? For example, I create a pcb in main, and bind it to any p and
some port. When data arrives, and I want to respond to that data, should I use the
same pcb in my application callback function for ‘received tcp data’? Also, timers… I have read many times that they should be
called from within the tcpip thread, however, how is this done without dramatically
slowing the thread down using things like system timeouts (like in ucos OSTimeDly)
in order to set the timeout values? You need at least one timeout for the 250ms
timer right, the rest can be done by incrementing a variable n times and then firing
when n times has passed. (ex: 4 times for 1 second). Thanks. --eric |
[Prev in Thread] | Current Thread | [Next in Thread] |