C# Class Aegis.Network.SessionMethodAsyncEvent

Inheritance: ISessionMethod
Datei anzeigen Open project: SyncZone/AegisFramework

Public Methods

Method Description
Clear ( ) : void
SendPacket ( StreamBuffer buffer, Action onSent = null ) : void
SendPacket ( StreamBuffer buffer, PacketPredicate predicate, IOEventHandler dispatcher, Action onSent = null ) : void
SendPacket ( byte buffer, int offset, int size, Action onSent = null ) : void
SessionMethodAsyncEvent ( Session session ) : System
WaitForReceive ( ) : void

Private Methods

Method Description
ReceiveComplete ( object sender, SocketAsyncEventArgs saea ) : void
SendComplete ( object sender, SocketAsyncEventArgs saea ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

SendPacket() public method

public SendPacket ( StreamBuffer buffer, Action onSent = null ) : void
buffer Aegis.IO.StreamBuffer
onSent Action
return void

SendPacket() public method

public SendPacket ( StreamBuffer buffer, PacketPredicate predicate, IOEventHandler dispatcher, Action onSent = null ) : void
buffer Aegis.IO.StreamBuffer
predicate PacketPredicate
dispatcher IOEventHandler
onSent Action
return void

SendPacket() public method

public SendPacket ( byte buffer, int offset, int size, Action onSent = null ) : void
buffer byte
offset int
size int
onSent Action
return void

SessionMethodAsyncEvent() public method

public SessionMethodAsyncEvent ( Session session ) : System
session Session
return System

WaitForReceive() public method

public WaitForReceive ( ) : void
return void