the function started by a new thread does not take any parameters except a pointer to void. More...
#include <CProcessMessageParameters.h>
Public Member Functions | |
CProcessMessageParameters (CSessionManager &inSessionManager, string &inPeerAddress, ofstream &inLogFile, int inSocket) | |
makes this structure (needed because of the use of references [ofstream& mLogFile]). |
Public Attributes | |
int | mSocket |
the file descriptor of the socket | |
ofstream & | mLogFile |
The log file for the communication. | |
CSessionManager & | mSessionManager |
The sessionManager of the communication. | |
string | mPeerAddress |
The socket address of the peer. |
the function started by a new thread does not take any parameters except a pointer to void.
We want to make that point to something richer.
CProcessMessageParameters::CProcessMessageParameters | ( | CSessionManager & | inSessionManager, |
string & | inPeerAddress, | ||
ofstream & | inLogFile, | ||
int | inSocket | ||
) |
makes this structure (needed because of the use of references [ofstream& mLogFile]).