Main   Class List   Namespace List   Wiki

SimpleNetObject Class Reference
[Networking]

A very simple example of a class derived from NetObject. More...

Inheritance diagram for SimpleNetObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void msg (NetConnection con, string message)
 Send a SimpleNetObject message to the specified connection.
void setMessage (string msg)
 Sets the internal message variable.

Detailed Description

A very simple example of a class derived from NetObject.

This object exists purely for instructional purposes. It is primarily geared toward developers that wish to understand the inner-working of Torque 3D's networking system. This is not intended for actual game development.

See also:
NetObject for a full breakdown of this example object

Member Function Documentation

void SimpleNetObject::msg ( NetConnection  con,
string  message 
)

Send a SimpleNetObject message to the specified connection.

Parameters:
con The unique ID of the connection to transmit to
message The string containing the message to transmit
void SimpleNetObject::setMessage ( string  msg  ) 

Sets the internal message variable.

Parameters:
msg The new message to send
Returns:
Value


Copyright © GarageGames, LLC. All Rights Reserved.