C# Class Squared.Task.IO.SocketDataAdapter

Inheritance: IAsyncDataSource, IAsyncDataWriter
Mostrar archivo Open project: sq/Fracture Class Usage Examples

Public Properties

Property Type Description
ThrowOnDisconnect bool

Public Methods

Method Description
Dispose ( ) : void
Read ( byte buffer, int offset, int count ) : Future
SocketDataAdapter ( Socket socket, bool ownsSocket = true ) : System
Write ( byte buffer, int offset, int count ) : SignalFuture

Private Methods

Method Description
IsSendBufferFull ( ) : bool
ReadCallback ( IAsyncResult ar ) : void
SockLog ( string format ) : void
WriteCallback ( IAsyncResult ar ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : Future
buffer byte
offset int
count int
return Future

SocketDataAdapter() public method

public SocketDataAdapter ( Socket socket, bool ownsSocket = true ) : System
socket System.Net.Sockets.Socket
ownsSocket bool
return System

Write() public method

public Write ( byte buffer, int offset, int count ) : SignalFuture
buffer byte
offset int
count int
return SignalFuture

Property Details

ThrowOnDisconnect public_oe property

public bool ThrowOnDisconnect
return bool