Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with wsock32 for c prog

Status
Not open for further replies.

jtowell

IS-IT--Management
Jun 10, 2002
1
US
I'm writting a C program that forwards packets on a specific TCP/IP port. How do I know when the client is no longer connected? I'd been having trouble with "select()", so I created a timeout loop.

Any Help would be appreciated! Jason

Sample Code
--------------------------------------------
while(1)
{
ioctlsocket(con2, FIONREAD, &buff2);
ioctlsocket(con1, FIONREAD, &buff1);
if(buff2)
{
--------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top