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

Datei anzeigen Open project: Starcounter/KestrelHttpServer Class Usage Examples

Public Properties

Property Type Description
IsWindows bool

Protected Properties

Property Type Description
_uv_accept Func
_uv_async_init Func
_uv_async_send int>.Func
_uv_close uv_close_cb>.Action
_uv_err_name IntPtr>.Func
_uv_handle_size int>.Func
_uv_ip4_addr uv_ip4_addr_func
_uv_ip6_addr uv_ip6_addr_func
_uv_listen Func
_uv_loop_close int>.Func
_uv_loop_init int>.Func
_uv_loop_size Func
_uv_pipe_bind Func
_uv_pipe_connect Action
_uv_pipe_init Func
_uv_pipe_pending_count int>.Func
_uv_read_start Func
_uv_read_stop int>.Func
_uv_ref Action
_uv_req_size int>.Func
_uv_run Func
_uv_shutdown Func
_uv_stop Action
_uv_strerror IntPtr>.Func
_uv_tcp_bind uv_tcp_bind_func
_uv_tcp_init Func
_uv_tcp_nodelay Func
_uv_tcp_open Func
_uv_try_write Func
_uv_unref Action
_uv_walk Func
_uv_write uv_write_func
_uv_write2 uv_write2_func

Public Methods

Method Description
@ref ( UvHandle handle ) : void
Check ( int statusCode ) : int
Check ( int statusCode, Exception &error ) : int
Libuv ( ) : System
accept ( UvStreamHandle server, UvStreamHandle client ) : void
async_init ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle loop, UvAsyncHandle handle, uv_async_cb cb ) : void
async_send ( UvAsyncHandle handle ) : void
buf_init ( IntPtr memory, int len ) : uv_buf_t
close ( IntPtr handle, uv_close_cb close_cb ) : void
close ( UvHandle handle, uv_close_cb close_cb ) : void
err_name ( int err ) : string
handle_size ( HandleType handleType ) : int
ip4_addr ( string ip, int port, sockaddr &addr, Exception &error ) : int
ip6_addr ( string ip, int port, sockaddr &addr, Exception &error ) : int
listen ( UvStreamHandle handle, int backlog, uv_connection_cb cb ) : void
loop_close ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle handle ) : void
loop_init ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle handle ) : void
loop_size ( ) : int
pipe_bind ( Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle handle, string name ) : void
pipe_connect ( UvConnectRequest req, Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle handle, string name, uv_connect_cb cb ) : void
pipe_init ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle loop, Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle handle, bool ipc ) : void
pipe_pending_count ( Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle handle ) : int
read_start ( UvStreamHandle handle, uv_alloc_cb alloc_cb, uv_read_cb read_cb ) : void
read_stop ( UvStreamHandle handle ) : void
req_size ( RequestType reqType ) : int
run ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle handle, int mode ) : int
shutdown ( Microsoft.AspNet.Server.Kestrel.Networking.UvShutdownReq req, UvStreamHandle handle, uv_shutdown_cb cb ) : void
stop ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle handle ) : void
strerror ( int err ) : string
tcp_bind ( UvTcpHandle handle, sockaddr &addr, int flags ) : void
tcp_init ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle loop, UvTcpHandle handle ) : void
tcp_nodelay ( UvTcpHandle handle, bool enable ) : void
tcp_open ( UvTcpHandle handle, IntPtr hSocket ) : void
try_write ( UvStreamHandle handle, uv_buf_t bufs, int nbufs ) : int
unref ( UvHandle handle ) : void
walk ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle loop, uv_walk_cb walk_cb, IntPtr arg ) : void
write ( Microsoft.AspNet.Server.Kestrel.Networking.UvRequest req, UvStreamHandle handle, uv_buf_t bufs, int nbufs, uv_write_cb cb ) : void
write2 ( Microsoft.AspNet.Server.Kestrel.Networking.UvRequest req, UvStreamHandle handle, Libuv bufs, int nbufs, UvStreamHandle sendHandle, uv_write_cb cb ) : void

Method Details

@ref() public method

public @ref ( UvHandle handle ) : void
handle UvHandle
return void

Check() public method

public Check ( int statusCode ) : int
statusCode int
return int

Check() public method

public Check ( int statusCode, Exception &error ) : int
statusCode int
error System.Exception
return int

Libuv() public method

public Libuv ( ) : System
return System

accept() public method

public accept ( UvStreamHandle server, UvStreamHandle client ) : void
server UvStreamHandle
client UvStreamHandle
return void

async_init() public method

public async_init ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle loop, UvAsyncHandle handle, uv_async_cb cb ) : void
loop Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle
handle UvAsyncHandle
cb uv_async_cb
return void

async_send() public method

public async_send ( UvAsyncHandle handle ) : void
handle UvAsyncHandle
return void

buf_init() public method

public buf_init ( IntPtr memory, int len ) : uv_buf_t
memory System.IntPtr
len int
return uv_buf_t

close() public method

public close ( IntPtr handle, uv_close_cb close_cb ) : void
handle System.IntPtr
close_cb uv_close_cb
return void

close() public method

public close ( UvHandle handle, uv_close_cb close_cb ) : void
handle UvHandle
close_cb uv_close_cb
return void

err_name() public method

public err_name ( int err ) : string
err int
return string

handle_size() public method

public handle_size ( HandleType handleType ) : int
handleType HandleType
return int

ip4_addr() public method

public ip4_addr ( string ip, int port, sockaddr &addr, Exception &error ) : int
ip string
port int
addr sockaddr
error System.Exception
return int

ip6_addr() public method

public ip6_addr ( string ip, int port, sockaddr &addr, Exception &error ) : int
ip string
port int
addr sockaddr
error System.Exception
return int

listen() public method

public listen ( UvStreamHandle handle, int backlog, uv_connection_cb cb ) : void
handle UvStreamHandle
backlog int
cb uv_connection_cb
return void

loop_close() public method

public loop_close ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle handle ) : void
handle Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle
return void

loop_init() public method

public loop_init ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle handle ) : void
handle Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle
return void

loop_size() public method

public loop_size ( ) : int
return int

pipe_bind() public method

public pipe_bind ( Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle handle, string name ) : void
handle Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle
name string
return void

pipe_connect() public method

public pipe_connect ( UvConnectRequest req, Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle handle, string name, uv_connect_cb cb ) : void
req UvConnectRequest
handle Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle
name string
cb uv_connect_cb
return void

pipe_init() public method

public pipe_init ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle loop, Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle handle, bool ipc ) : void
loop Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle
handle Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle
ipc bool
return void

pipe_pending_count() public method

public pipe_pending_count ( Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle handle ) : int
handle Microsoft.AspNet.Server.Kestrel.Networking.UvPipeHandle
return int

read_start() public method

public read_start ( UvStreamHandle handle, uv_alloc_cb alloc_cb, uv_read_cb read_cb ) : void
handle UvStreamHandle
alloc_cb uv_alloc_cb
read_cb uv_read_cb
return void

read_stop() public method

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

req_size() public method

public req_size ( RequestType reqType ) : int
reqType RequestType
return int

run() public method

public run ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle handle, int mode ) : int
handle Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle
mode int
return int

shutdown() public method

public shutdown ( Microsoft.AspNet.Server.Kestrel.Networking.UvShutdownReq req, UvStreamHandle handle, uv_shutdown_cb cb ) : void
req Microsoft.AspNet.Server.Kestrel.Networking.UvShutdownReq
handle UvStreamHandle
cb uv_shutdown_cb
return void

stop() public method

public stop ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle handle ) : void
handle Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle
return void

strerror() public method

public strerror ( int err ) : string
err int
return string

tcp_bind() public method

public tcp_bind ( UvTcpHandle handle, sockaddr &addr, int flags ) : void
handle UvTcpHandle
addr sockaddr
flags int
return void

tcp_init() public method

public tcp_init ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle loop, UvTcpHandle handle ) : void
loop Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle
handle UvTcpHandle
return void

tcp_nodelay() public method

public tcp_nodelay ( UvTcpHandle handle, bool enable ) : void
handle UvTcpHandle
enable bool
return void

tcp_open() public method

public tcp_open ( UvTcpHandle handle, IntPtr hSocket ) : void
handle UvTcpHandle
hSocket System.IntPtr
return void

try_write() public method

public try_write ( UvStreamHandle handle, uv_buf_t bufs, int nbufs ) : int
handle UvStreamHandle
bufs uv_buf_t
nbufs int
return int

unref() public method

public unref ( UvHandle handle ) : void
handle UvHandle
return void

walk() public method

public walk ( Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle loop, uv_walk_cb walk_cb, IntPtr arg ) : void
loop Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle
walk_cb uv_walk_cb
arg System.IntPtr
return void

write() public method

public write ( Microsoft.AspNet.Server.Kestrel.Networking.UvRequest req, UvStreamHandle handle, uv_buf_t bufs, int nbufs, uv_write_cb cb ) : void
req Microsoft.AspNet.Server.Kestrel.Networking.UvRequest
handle UvStreamHandle
bufs uv_buf_t
nbufs int
cb uv_write_cb
return void

write2() public method

public write2 ( Microsoft.AspNet.Server.Kestrel.Networking.UvRequest req, UvStreamHandle handle, Libuv bufs, int nbufs, UvStreamHandle sendHandle, uv_write_cb cb ) : void
req Microsoft.AspNet.Server.Kestrel.Networking.UvRequest
handle UvStreamHandle
bufs Libuv
nbufs int
sendHandle UvStreamHandle
cb uv_write_cb
return void

Property Details

IsWindows public_oe property

public bool IsWindows
return bool

_uv_accept protected_oe property

protected Func _uv_accept
return Func

_uv_async_init protected_oe property

protected Func _uv_async_init
return Func

_uv_async_send protected_oe property

protected Func _uv_async_send
return int>.Func

_uv_close protected_oe property

protected Action _uv_close
return uv_close_cb>.Action

_uv_err_name protected_oe property

protected Func _uv_err_name
return IntPtr>.Func

_uv_handle_size protected_oe property

protected Func _uv_handle_size
return int>.Func

_uv_ip4_addr protected_oe property

protected uv_ip4_addr_func _uv_ip4_addr
return uv_ip4_addr_func

_uv_ip6_addr protected_oe property

protected uv_ip6_addr_func _uv_ip6_addr
return uv_ip6_addr_func

_uv_listen protected_oe property

protected Func _uv_listen
return Func

_uv_loop_close protected_oe property

protected Func _uv_loop_close
return int>.Func

_uv_loop_init protected_oe property

protected Func _uv_loop_init
return int>.Func

_uv_loop_size protected_oe property

protected Func _uv_loop_size
return Func

_uv_pipe_bind protected_oe property

protected Func _uv_pipe_bind
return Func

_uv_pipe_connect protected_oe property

protected Action _uv_pipe_connect
return Action

_uv_pipe_init protected_oe property

protected Func _uv_pipe_init
return Func

_uv_pipe_pending_count protected_oe property

protected Func _uv_pipe_pending_count
return int>.Func

_uv_read_start protected_oe property

protected Func _uv_read_start
return Func

_uv_read_stop protected_oe property

protected Func _uv_read_stop
return int>.Func

_uv_ref protected_oe property

protected Action _uv_ref
return Action

_uv_req_size protected_oe property

protected Func _uv_req_size
return int>.Func

_uv_run protected_oe property

protected Func _uv_run
return Func

_uv_shutdown protected_oe property

protected Func _uv_shutdown
return Func

_uv_stop protected_oe property

protected Action _uv_stop
return Action

_uv_strerror protected_oe property

protected Func _uv_strerror
return IntPtr>.Func

_uv_tcp_bind protected_oe property

protected uv_tcp_bind_func _uv_tcp_bind
return uv_tcp_bind_func

_uv_tcp_init protected_oe property

protected Func _uv_tcp_init
return Func

_uv_tcp_nodelay protected_oe property

protected Func _uv_tcp_nodelay
return Func

_uv_tcp_open protected_oe property

protected Func _uv_tcp_open
return Func

_uv_try_write protected_oe property

protected Func _uv_try_write
return Func

_uv_unref protected_oe property

protected Action _uv_unref
return Action

_uv_walk protected_oe property

protected Func _uv_walk
return Func

_uv_write protected_oe property

protected uv_write_func _uv_write
return uv_write_func

_uv_write2 protected_oe property

protected uv_write2_func _uv_write2
return uv_write2_func