..:: CMap to take a pointer to a socket and a CString ::..
Posted on 2003-11-03
I am trying to use a CMap or a CTypedPtrList or any other suggestion,
to construct a list of open socket connections and associated with it a username of the user connected at that socket.
so when a request comes in to talk to 'bob' bob is looked up in the list found the socket it it connected to and starts a chat session.
what i have done so far only works for a socket list, I cant seem to associate a username to it as well so the above functionality does not
any help please, code snippets pls.