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.
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.
Cheers,
Scronty
"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.
Cheers,
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.
On a second thought, nevermind. I guess it's not possible.