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)
{
--------------------------------------------
Any Help would be appreciated! Jason
Sample Code
--------------------------------------------
while(1)
{
ioctlsocket(con2, FIONREAD, &buff2);
ioctlsocket(con1, FIONREAD, &buff1);
if(buff2)
{
--------------------------------------------