C# Class TLSharp.Core.Network.MtProtoSender

Mostra file Open project: sochix/TLSharp Class Usage Examples

Public Properties

Property Type Description
needConfirmation List

Public Methods

Method Description
ChangeTransport ( TcpTransport transport ) : void
MtProtoSender ( TcpTransport transport, Session session ) : System
Receive ( TeleSharp request ) : Task
Send ( TeleSharp request ) : Task
Send ( byte packet, TeleSharp request ) : Task
SendPingAsync ( ) : Task

Private Methods

Method Description
DecodeMessage ( byte body ) : Tuple
GenerateSequence ( bool confirmed ) : int
HandleBadMsgNotification ( ulong messageId, int sequence, BinaryReader messageReader ) : bool
HandleBadServerSalt ( ulong messageId, int sequence, BinaryReader messageReader, TeleSharp request ) : bool
HandleContainer ( ulong messageId, int sequence, BinaryReader messageReader, TeleSharp request ) : bool
HandleFutureSalts ( ulong messageId, int sequence, BinaryReader messageReader ) : bool
HandleGzipPacked ( ulong messageId, int sequence, BinaryReader messageReader, TeleSharp request ) : bool
HandleMsgDetailedInfo ( ulong messageId, int sequence, BinaryReader messageReader ) : bool
HandleMsgsAck ( ulong messageId, int sequence, BinaryReader messageReader ) : bool
HandleNewSessionCreated ( ulong messageId, int sequence, BinaryReader messageReader ) : bool
HandlePing ( ulong messageId, int sequence, BinaryReader messageReader ) : bool
HandlePong ( ulong messageId, int sequence, BinaryReader messageReader, TeleSharp request ) : bool
HandleRpcResult ( ulong messageId, int sequence, BinaryReader messageReader, TeleSharp request ) : bool
HandleUpdate ( ulong messageId, int sequence, BinaryReader messageReader ) : bool
makeMemory ( int len ) : MemoryStream
processMessage ( ulong messageId, int sequence, BinaryReader messageReader, TeleSharp request ) : bool

Method Details

ChangeTransport() public method

public ChangeTransport ( TcpTransport transport ) : void
transport TcpTransport
return void

MtProtoSender() public method

public MtProtoSender ( TcpTransport transport, Session session ) : System
transport TcpTransport
session Session
return System

Receive() public method

public Receive ( TeleSharp request ) : Task
request TeleSharp
return Task

Send() public method

public Send ( TeleSharp request ) : Task
request TeleSharp
return Task

Send() public method

public Send ( byte packet, TeleSharp request ) : Task
packet byte
request TeleSharp
return Task

SendPingAsync() public method

public SendPingAsync ( ) : Task
return Task

Property Details

needConfirmation public_oe property

public List needConfirmation
return List