Drag[en]gine Script Module DragonScript Script API 1.0
|Create connection. More...|
|Llocal address. More...|
|Remote address. More...|
|Connection is established. More...|
|bool||connectTo (String address)|
|Connect to host at address. More...|
|Disconnect if connected. More...|
|void||sendMessage (NetworkMessage message, int maxDelay)|
|Send message if connected. More...|
|void||sendReliableMessage (NetworkMessage message)|
|Send reliable message if connected. More...|
|void||linkState (String message, NetworkState state)|
|Link network state to remote network state. More...|
|Connection listener or null if not set. More...|
|void||setConnectionListener (ConnectionListener listener)|
|Set connection listener or null if not set. More...|
This is a native class.
Connect to host at address.
Connection success or failure is reported through the scripting peer. The format of the address is specific to the network module.
Disconnect if connected.
Connection is established.
Link network state to remote network state.
The message contains informations for the remote system to know what state to link to. The request is queued and carried out as soon as possible. The local state is considered the master state and the remote state the slave state. By default only the master state can apply changes. This can be changed on a per state basis.
Send message if connected.
The message can be queued and send at a later time to optimize throughput. The message will be not delayed longer than the given amount of milliseconds. The message is send unreliable and it is acceptable for the message to get lost due to transmission failure.
Send reliable message if connected.
The message is append to already waiting reliable messages and send as soon as possible. Reliable messages always arrive in the same order they have been queued.
Set connection listener or null if not set.