Monkey Documentation

Interface MegaPacketNetworkListener

This is used to receive notifications regarding the states of MegaPacket objects.

More...


Methods:

Detailed Discussion

This is used to receive notifications regarding the states of MegaPacket objects.

See also: SetMegaPacketCallback


Method Documentation

Method OnMegaPacketDownSize : Bool ( Network:NetworkEngine, MP:MegaPacket )

This asks if MP should be cut down. (If unsure, return False)

Method OnMegaPacketFinished : Void ( Network:NetworkEngine, MP:MegaPacket )

This is called when a MegaPacket is finished. (Fully built from the data we received) This will be called before ReadMessageBody is executed.

Method OnMegaPacketRequestAborted : Void ( Network:NetworkEngine, MP:MegaPacket )

This is called on both ends, and signifies a failure by means of an "abort".

Method OnMegaPacketRequestAccepted : Void ( Network:NetworkEngine, MP:MegaPacket )

This is called when a remote MegaPacket request is accepted on this end.

Method OnMegaPacketRequestFailed : Void ( Network:NetworkEngine, MP:MegaPacket )

This is called when a pending MegaPacket has been rejected by the other end.

Method OnMegaPacketRequestSucceeded : Void ( Network:NetworkEngine, MP:MegaPacket )

This is called when a MegaPacket request your end sent is accepted. Not necessarily accepted for chunk I/O, though, see MEGA_PACKET_ACTION_REQUEST_CHUNK_LOAD.

Method OnMegaPacketSent : Void ( Network:NetworkEngine, MP:MegaPacket )

This is called when a MegaPacket is done being sent.