From TDN
This page is a Work In Progress by Seth Willits, dated May 13, 2008.
TGB Networking >> Client Methods
Methods on the Client
- connectToServer
- disconnect
- commandToServer
connectToServer( ip )
|
|
Purpose
Disconnects from any existing connection then connects to the given server.
Syntax
ip - The ip address of the server to connect to.
Returns
No return value.
Callbacks
|
commandToServer( func [ , arg1, ... , argn ] )
|
|
Purpose
Use the commandToServer function to issue a remote procedure call the server.
Syntax
func - The suffix of the remote procedure name to be executed on the client.
arg1 .. argn - Optional arguments to be passed to the remote procedure.
Returns
No return value.
Notes
All arguments may be in tagged or non-tagged format. See 'Remote Procedure Call Samples' below.
|
disconnect( )
|
|
Purpose
Disconnects from the server the client is currently connected to.
Syntax
No parameters.
Returns
No return value.
Callbacks
onDisconnect()
|