---
name: "CL_NetObjectController_Basic"
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_NetObjectController_Basic"
---

# CL\_NetObjectController\_Basic(3)

NetObject controller class.

## NAME

CL\_NetObjectController\_Basic - NetObject controller class.

## DESCRIPTION

The NetObject controller is used to administrate the actual network sending and trivial of netobjects. It routes incoming messages to the correct netobject, and makes an unique identification of each netobject type.

CL\_NetObjectController uses the CL\_NetObjectCreator instance to create netobjects on the client machines.

## CLASS MEMBERS

- **CL\_NetObjectController\_Basic**()

  - virtual **~CL\_NetObjectController\_Basic**()

  - void **add**(

  ```
  CL_NetObject *netobj,
  int type)
  ```

- void **remove**(

  ```
  CL_NetObject *netobj)
  ```

- int **get\_netobj\_id**(

  ```
  CL_NetObject *netobj)
  ```

- void **set\_creator**(

  ```
  CL_NetObjectCreator *creator)
  ```

- void **update**(

  ```
  CL_NetGame *game,
  int netchannel)
  ```

- void **send**(

  ```
   CL_NetGame *game,
  int netchannel,
  CL_NetObject *obj,
  CL_NetMessage msg,
  const CL_NetComputer *computer)
  ```

- void **send**(

  ```
   CL_NetGame *game,
  int netchannel,
  CL_NetObject *obj,
  CL_NetMessage msg,
  const CL_NetComputer *computer)
  ```

## MEMBERS WITH DESCRIPTIONS

- **CL\_NetObjectController\_Basic**()

  ```
  Description:
  ```

- virtual **~CL\_NetObjectController\_Basic**()

  ```
  Description:
  ```

- void **add**(

  ```
  CL_NetObject *netobj,
  int type)
  ```

  ```
  Description:
  ```

- void **remove**(

  ```
  CL_NetObject *netobj)
  ```

  ```
  Description:
  ```

- int **get\_netobj\_id**(

  ```
  CL_NetObject *netobj)
  ```

  ```
  Description:
  ```

- void **set\_creator**(

  ```
  CL_NetObjectCreator *creator)
  ```

  ```
  Description:
  ```

- void **update**(

  ```
  CL_NetGame *game,
  int netchannel)
  ```

  ```
  Description:
  ```

- void **send**(

  ```
   CL_NetGame *game,
  int netchannel,
  CL_NetObject *obj,
  CL_NetMessage msg,
  const CL_NetComputer *computer)
  ```

  ```
  Description:
  ```

- void **send**(

  ```
   CL_NetGame *game,
  int netchannel,
  CL_NetObject *obj,
  CL_NetMessage msg,
  const CL_NetComputer *computer)
  ```

  ```
  Description:
  ```

## 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.
