1
Reply

Storing Multiple Socket Objects...?

write2jey

write2jey

Feb 15 2005 7:04 PM
3.1k
I've multiple Socket objects connected with multiple servers. Does .NET provide any mechanisms to access these objects through any collection classes? The only primitive solutions I got so far is: Object [] o = new Object[5]; //handle a max. of 5 connections socket = new Socket(...); o[0] = socket; // save the object in the array. Is this any good? How about GetHashcode()? Thanks, JJ

Answers (1)