sockets - Java multiple connection to server in dynamic ports -
i need have udp server allow me receive/send informations from/to clients dynamically open socket free port (so it differente device , device). client send , receive in same port, server must able communicate it.
how set server stay open in every port? if had 250 thousand users how handle them without tails problem , preventing port occupied client?
i thought open every port different sockets in different thread, don't know if correct way.
a udp server can listen , open on 1 port. clients can send data port. server have handle each data , respond if needed peer sent data. should happen if more 1 client wish send data server. in udp context 1 client not hog server port.(unless application badly written).
Comments
Post a Comment