Is it possible to store some kind of number together with a SOCKET? This is actually for a C++ project where I have to know which Socket Class a SOCKET belongs to.
Posted on 2002-02-13 04:01:41 by gliptic
Afternoon, gliptic.

"which Socket Class a SOCKET belongs to"? How many would you have?:grin:

Depending on exactly what you're looking for, you could have a 2d array, and store SOCKET handles with the corresponding socket class.

Posted on 2002-02-13 04:27:15 by Scronty
Yes, that's how I have solved it now but I don't want it to be this way. I don't want to test each Socket class to see which one a SOCKET belongs to. If I have many classes that isn't in an array I have to test them manually. It's mainly when I get a message about a socket event I need to find the proper class.

On a second thought, nevermind. I guess it's not possible.
Posted on 2002-02-13 06:04:32 by gliptic