The problem is that I do not disconnect the connection. I use the same
connection to perform send/recv pair for all transactions in the queue.
"Chris Bipes" <chris.bipes@xxxxxxxxxxxxxxx> wrote in message
news:mailman.25994.1296235268.2702.midrange-l@xxxxxxxxxxxx...
I do not think that will be a problem. Now do you initiate the
connection to the Cisco modem pool? If so, every time you connect, you
get a new Socket Descriptor and new buffers. If your program is
listening for new connections, then each new connection will have a new
buffer. Data from one connection will not spill into the next as long
as you are creating a new socket descriptor for each connection.
Now within your application, you will have your receive buffer defined.
1. have a seperate buffer for each socket descriptor, create/clear the
buffer whenever a new socket descriptor is created and a new connection
is established.
If you are not using Select() in your program, you are only handling one
connection at a time anyway. If you are listening, then clear your
buffers every time you go to Accept() If you are initiating, clear you
buffers before you Connect()