C# Class Telegram.MTProto.Network.AsyncSocket

Mostrar archivo Open project: naphaso/kilogram Class Usage Examples

Public Methods

Method Description
AsyncSocket ( ) : System
Connect ( string host, int port ) : System.Threading.Tasks.Task
Dispose ( ) : void
Read ( ) : Task
Send ( byte data ) : System.Threading.Tasks.Task
Send ( byte data, int offset, int length ) : System.Threading.Tasks.Task

Method Details

AsyncSocket() public method

public AsyncSocket ( ) : System
return System

Connect() public method

public Connect ( string host, int port ) : System.Threading.Tasks.Task
host string
port int
return System.Threading.Tasks.Task

Dispose() public method

public Dispose ( ) : void
return void

Read() public method

public Read ( ) : Task
return Task

Send() public method

public Send ( byte data ) : System.Threading.Tasks.Task
data byte
return System.Threading.Tasks.Task

Send() public method

public Send ( byte data, int offset, int length ) : System.Threading.Tasks.Task
data byte
offset int
length int
return System.Threading.Tasks.Task