java - What Is Faster One Port Per User, Or All Users On One port -


what faster realtime game server, 1 port per user on server in each user passed thread , receives port assignment, or 1 port per user in each thread handed socket after being established on main thread?

it's not question of 'faster'. once connection established doesn't matter. real issue first alternative not implementable without lot of code in slow things down in connect phase. tcp server socket listens on single fixed port clients know about, , connect port. if want move them port have open it, tell them port is, , accept connection. it's pointless.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -