c# - Getting element from a client list -


i have client connection class in c#.

client connection instance created every new client , add list has client id (identifier client) , client connection instance.

public sortedlist<uint, clientconnection> clientlist { get; set; }  public void addclienttosortedlist(uint clientid, clientconnection clientconnection) {  if (!clientlist.containskey(clientid))                     clientlist.add(clientid, clientconnection); } 

now issue have client connection object. need map client list client id particular client.

i thought of using ip address , calculating ip address of clients in list , comparing , client id concerned client not getting idea how that.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -