Entire Class Index | Main Class Index | Cross Index | Global Index

# Class CL_NetObject_Controller

Network object replication channel.
Contained in: global
Derived from: none
Derived by: none
Group: Network (NetObjects)

#include <ClanLib/network.h>

### public function member index:
### Construction:
`` | `CL_NetObject_Controller` | `(`class` `CL_NetSession`* `netsession`, `const` `std::string`& `channel`)`;
`` | `CL_NetObject_Controller` | `(`const` `CL_NetObject_Controller`& `copy`)`;
``virtual`` | `~CL_NetObject_Controller` | `()`;
### Operations:
``CL_NetObject_Controller`&` | `operator``=` | `(`const` `CL_NetObject_Controller`& `copy`)`;
### Signals:
``CL_Signal_v3`<`CL_NetObject_Client`& , `int`, `CL_NetPacket`& >&` | `sig_create_object` | `()`;

## Description:

Manages a netchannel with netobject replication data. It dispatches incoming messages to the correct netobject.

## Function Member Descriptions:

CL_NetObject_Controller::CL_NetObject_Controller - Constructs a netobject controller.
`` `CL_NetObject_Controller``(`class` `CL_NetSession`* `netsession`, `const` `std::string`& `channel`)`;

CL_NetObject_Controller::CL_NetObject_Controller - Copy constructor.
`` `CL_NetObject_Controller``(`const` `CL_NetObject_Controller`& `copy`)`;

CL_NetObject_Controller::sig_create_object - Signal that is called whenever the netobject channel receives a message for a netobject
it doesnt know. The application should hook a slot into this signal and determine what
to do with the message.
``CL_Signal_v3`<`CL_NetObject_Client`& , `int`, `CL_NetPacket`& >&` `sig_create_object``()`;

> <p>CL_Signal_v3<netobject, msgtype, message>.</p>
> <p>Signal parameters:
> CL_NetObject &netobj_handle - Handle identifying the netobject created.
> int msg_type - Message type of the message (the msg_type param used to send it with netobj.send()).
> CL_NetPacket &message - The message itself.</p>

CL_NetObject_Controller::~CL_NetObject_Controller - NetObject Controller destructor.
``virtual`` `~CL_NetObject_Controller``()`;

## Variable Member Descriptions:

CL_NetObject_Controller::impl - NetObjectController implementation.
``CL_NetObject_Controller_Generic` *` ``impl`;`