Monkey Documentation

Interface MetaNetworkListener

This is used for "meta" notifications, like user-level messages, or network-disconnection.

More...


Methods:
  • OnDisconnected : Void ( Network:NetworkEngine )
  • OnReceiveMessage : Void ( Network:NetworkEngine, C:Client, Type:MessageType, Message:Stream, MessageSize:Int )

Detailed Discussion

This is used for "meta" notifications, like user-level messages, or network-disconnection.

See also: SetMetaCallback


Method Documentation

Method OnDisconnected : Void ( Network:NetworkEngine )

This is called when Network has disconnected.

Method OnReceiveMessage : Void ( Network:NetworkEngine, C:Client, Type:MessageType, Message:Stream, MessageSize:Int )

The Message object will be automatically released, and should not be closed. The MessageSize argument specifies how many bytes are in the data-segment of Message.