Monkey Documentation

Interface ClientNetworkListener

This is used to receive notifications of, and to moderate the behaviors of Client objects.

More...


Methods:

Detailed Discussion

This is used to receive notifications of, and to moderate the behaviors of Client objects.

See also: SetClientCallback


Method Documentation

Method OnClientAccepted : Void ( Network:NetworkEngine, C:Client )

Assuming C was accepted in a previous call to OnClientConnect, this will be called.

Method OnClientConnect : Bool ( Network:NetworkEngine, Address:NetworkAddress )

This is called when a client attempts to connect. The return-value of this command dictates if the client at Address should be accepted.

Method OnClientDisconnected : Void ( Network:NetworkEngine, C:Client )

This is called when a Client disconnects. This will not be called for client-networks, only hosts.