N
Nash
Hi,
I have a Client and Server application which does communication using
sockets(APM). The problem is Whenever the client is connected to a
server i am storing the socket in a list.
When server wants to send a message to a particular client whose ip is
known, i have to loop through all the sockets in the list, gets its ip
and compare it with my ip and send the data. is there any other way to
avoid looping the huge list??
thanks in advance
I have a Client and Server application which does communication using
sockets(APM). The problem is Whenever the client is connected to a
server i am storing the socket in a list.
When server wants to send a message to a particular client whose ip is
known, i have to loop through all the sockets in the list, gets its ip
and compare it with my ip and send the data. is there any other way to
avoid looping the huge list??
thanks in advance