Click Here to Login
Join Computer forums Today


View Single Post
Old 10-10-2011, 11:28 AM   #2
root
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,067
Default Re: several TCP sockets

generally you can't have two processes listening on the same port.

but you can have one process listening on a port that spawns multiple sockets. e.g. you generally start a process with only a few sockets, and spawn more sockets as the connection count goes up. after clients have finished talking to the server process you kill the sockets to keep resource use down.

I assume that you're writing some software? -if you're bothered about the socket connections
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
 

All times are GMT -5. The time now is 10:42 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2018, vBulletin Solutions, Inc.