C# Class Microsoft.AspNet.Server.Kestrel.Networking.UvStreamHandle

Inheritance: UvHandle
Show file Open project: Starcounter/KestrelHttpServer Class Usage Examples

Public Properties

Property Type Description
_allocCallback Func
_listenCallback Action
_listenState object
_readCallback Action
_readState object

Public Methods

Method Description
Accept ( UvStreamHandle handle ) : void
Listen ( int backlog, Action callback, object state ) : void
ReadStart ( Func allocCallback, Action readCallback, object state ) : void
ReadStop ( ) : void
TryWrite ( Libuv buf ) : int

Protected Methods

Method Description
ReleaseHandle ( ) : bool
UvStreamHandle ( IKestrelTrace logger ) : System

Private Methods

Method Description
UvAllocCb ( IntPtr handle, int suggested_size, Libuv &buf ) : void
UvConnectionCb ( IntPtr handle, int status ) : void
UvReadCb ( IntPtr handle, int status, Libuv &buf ) : void

Method Details

Accept() public method

public Accept ( UvStreamHandle handle ) : void
handle UvStreamHandle
return void

Listen() public method

public Listen ( int backlog, Action callback, object state ) : void
backlog int
callback Action
state object
return void

ReadStart() public method

public ReadStart ( Func allocCallback, Action readCallback, object state ) : void
allocCallback Func
readCallback Action
state object
return void

ReadStop() public method

public ReadStop ( ) : void
return void

ReleaseHandle() protected method

protected ReleaseHandle ( ) : bool
return bool

TryWrite() public method

public TryWrite ( Libuv buf ) : int
buf Libuv
return int

UvStreamHandle() protected method

protected UvStreamHandle ( IKestrelTrace logger ) : System
logger IKestrelTrace
return System

Property Details

_allocCallback public property

public Func _allocCallback
return Func

_listenCallback public property

public Action _listenCallback
return Action

_listenState public property

public object _listenState
return object

_readCallback public property

public Action _readCallback
return Action

_readState public property

public object _readState
return object