Reference

CL_NetMessage(3)

CL_NetMessage is used to contain messages sent across the network.

NAME

CL_NetMessage - CL_NetMessage is used to contain messages sent across the network.

CLASS MEMBERS

CL_NetMessage()
CL_NetMessage(
const CL_NetMessage &copy)

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 &copy)

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.

SEE ALSO

All ClanLib API classes can be found in clanlib (3).

AUTHORS

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.