locked
Help with winsock please! RRS feed

  • Question

  • Hi

    How can i add each connected socket into an array list?

    Thanks.

    • Moved by Rob Pan Thursday, August 25, 2011 9:25 AM (From:Visual C++ General)
    Friday, August 19, 2011 10:34 AM

All replies

  • What kind of array list are you talking about? Are you using C++/CLI?
    Friday, August 19, 2011 12:19 PM
  • Yeah
    Friday, August 19, 2011 12:58 PM
  • So just use the Add member of the array list:

    Socket ^s = ....;
    arrayList->Add(s);
    

    Friday, August 19, 2011 1:02 PM
  • Native sorry :(
    Friday, August 19, 2011 3:48 PM
  • You'll have to provide some more details if you want an answer. Earlier I asked if you use C++CLI and you said yes. Now you say it's native!?
    Friday, August 19, 2011 4:12 PM