---
name: "CL_NetMessage"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_NetMessage"
---

# 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 \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. 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.
