1
Answer

Storing Multiple Socket Objects...?

write2jey

write2jey

19y
3.1k
1
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)