C# Class RioSharp.RioTcpListener

Inheritance: RioConnectionOrientedSocketPool
Mostra file Open project: aL3891/RioSharp Class Usage Examples

Public Properties

Property Type Description
OnAccepted Action

Public Methods

Method Description
Dispose ( ) : void
Listen ( IPEndPoint localEP, int backlog ) : void
RioTcpListener ( RioFixedBufferPool sendPool, RioFixedBufferPool revicePool, uint socketCount, uint maxOutstandingReceive = 2048, uint maxOutstandingSend = 2048 ) : System

Protected Methods

Method Description
SocketIocpError ( int error, RioSharp.RioConnectionOrientedSocket socket, byte status ) : bool
SocketIocpOk ( RioSharp.RioConnectionOrientedSocket socket, byte status ) : bool

Private Methods

Method Description
AcceptIocpComplete ( object o ) : void
BeginAccept ( RioSharp.RioConnectionOrientedSocket acceptSocket ) : void
FinalizeRecycle ( RioSharp.RioConnectionOrientedSocket socket ) : void
InitializeSocket ( RioSharp.RioConnectionOrientedSocket socket ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Listen() public method

public Listen ( IPEndPoint localEP, int backlog ) : void
localEP System.Net.IPEndPoint
backlog int
return void

RioTcpListener() public method

public RioTcpListener ( RioFixedBufferPool sendPool, RioFixedBufferPool revicePool, uint socketCount, uint maxOutstandingReceive = 2048, uint maxOutstandingSend = 2048 ) : System
sendPool RioFixedBufferPool
revicePool RioFixedBufferPool
socketCount uint
maxOutstandingReceive uint
maxOutstandingSend uint
return System

SocketIocpError() protected method

protected SocketIocpError ( int error, RioSharp.RioConnectionOrientedSocket socket, byte status ) : bool
error int
socket RioSharp.RioConnectionOrientedSocket
status byte
return bool

SocketIocpOk() protected method

protected SocketIocpOk ( RioSharp.RioConnectionOrientedSocket socket, byte status ) : bool
socket RioSharp.RioConnectionOrientedSocket
status byte
return bool

Property Details

OnAccepted public_oe property

public Action OnAccepted
return Action