write2jey

write2jey

  • NA
  • 69
  • 0

Storing Multiple Socket Objects...?

Feb 15 2005 7:04 PM
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)