python - How do I receive and manage multiple TCP connections on the same port? -


i have number of clients need connect server , maintain connection time (around 4 hours). don't want specify different connection port each client (as there potentially many of them) them able connect server on specific predetermined port e.g., 10800 , have server accept , maintain connection still able receive other connections new clients. there way in python or need re-think architecture.

extra credit: python snippet of server code doing amazing!

i don't want specify different connection port each client (as there potentially many of them)

you don't need that.

i them able connect server on specific predetermined port e.g., 10800 , have server accept , maintain connection still able receive other connections new clients

that's how tcp works.

just create socket listening port 10800 , accept connections it.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -