CL_NetMessage3
Cl_netmessage is used to contain messages sent across the network.
Class members
CL_NetMessage()
CL_NetMessage(-
const CL_NetMessage ©)
CL_NetMessage(-
void *data, int size)
- std::string
data
- CL_NetComputer *
from
Members with descriptions
CL_NetMessage()-
Description:
Creates a net message with no contents. (default constructor)
CL_NetMessage(-
const CL_NetMessage ©)
Description:
Copy constructor.
CL_NetMessage(-
void *data, int size)
Parameters: data - Pointer to the data to be contained by the message. size - Size of the data.
Description:
Constructs a Net message using the data given. Please notice that it doesn't duplicate the data, but only points its data pointer to the data given.
- std::string
data -
Description:
Packet data.
- CL_NetComputer *
from -
Description:
Computer the message was sent from. You don't have to fill in thisif you just want to send a message - it is only used when receiving froma netchannel.