C# Class Telegram.MTProto.Network.TransportGateway

Inheritance: IDisposable
Mostra file Open project: naphaso/kilogram

Public Methods

Method Description
ConnectAsync ( TelegramDC dc, int maxRetries ) : Task
Dispose ( ) : void
TransportGateway ( ) : System
TransportSend ( byte packet ) : bool

Protected Methods

Method Description
OnReceive ( byte packet ) : void

Private Methods

Method Description
CheckInput ( ) : void
Connect ( TelegramDC dc ) : bool
OnConnected ( object sender, SocketAsyncEventArgs args ) : void
OnRead ( object sender, SocketAsyncEventArgs args ) : void
ReadAsync ( byte buffer = null ) : void
ReadInt ( byte array, long position ) : int
TryReconnect ( ) : void

Method Details

ConnectAsync() public method

public ConnectAsync ( TelegramDC dc, int maxRetries ) : Task
dc TelegramDC
maxRetries int
return Task

Dispose() public method

public Dispose ( ) : void
return void

OnReceive() protected method

protected OnReceive ( byte packet ) : void
packet byte
return void

TransportGateway() public method

public TransportGateway ( ) : System
return System

TransportSend() public method

public TransportSend ( byte packet ) : bool
packet byte
return bool