php - Designing multiple client to single server UDP loggin system -
i'm looking build network around 500 devices send in data central server sort , process data submitted. clients written in .net whilst server written in php.
from i've read udp appears ideal allows data sent clients server no handshaking etc, packets processed received in whatever order received. there no specific requirement send data client server.
looking @ examples on web appears udp datagrams either need fixed length. case ? or can terminated @ either end specific character script can determine start , end of each message?
each client sending in message consisting of information different number of objects - information 1 object, other times 5 or ten. having fix length of datagram mean having send message each object. i'd rather send information on objects in 1 message.
given number of clients expect server portion need multi-threaded. in case presumably need script listen on specific port , open connection on port ?
this replace existing system that's using tcp inefficiently want make sure plan correctly outset guidance welcome.
Comments
Post a Comment