Questions for the winsock gurus

PrOpHeT
11-02-2001, 05:34 PM
Ok,
1> I do not know if this is possible with winsock, but I need to know if it is possible to accept multiple connections on a single port. Like a mail server does.

2> How do I detect when the remote computer has disconnected so I can reset the port? I have tried a timer checking the sckconnected property, however the server seems to think it is still connected even after the client has closed.

PrOpHeT
11-02-2001, 06:07 PM
Questions answered,

If anyone is interested

http://www.vbcity.com/pubs/article.asp?alias=multiconnect

ChiefRedBull
11-03-2001, 06:32 AM
Question 1) is demoed in the code libray - by me.

Question 2) i believe is also demoed in my tutorials. Checking the sckConnected should work, or you can try sending a blank char, if it fails - its disconnected.

Chief

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum