Networking-using ports
1 posts in topic
Flat View  Flat View

Posted By:   Nadia_Wolfaardt
Posted On:   Thursday, June 27, 2002 04:54 AM

Is it possible to count the number of users on your network, using the same port,say port 1111, at the same time.If it is, is there someone who can help with some sample code?

Re: Networking-using ports

Posted By:   Jorgen_Nordqvist  
Posted On:   Tuesday, July 2, 2002 10:32 PM

If 1111 is a server socket which accepts incoming connections and spawns separate processes for each connection, then it is definitely possible to implement a counter that counts active sessions.

Just about the only tricky bit is to implement code that detects stale connections and adjusts the counter accordingly.


About | Sitemap | Contact