public static void tcp_getpeername(UVTCPHandle handle, out SockAddr addr, ref int namelen) { handle.Validate(); ThrowIfErrored(uv_tcp_getpeername(handle, out addr, ref namelen)); }
public static void tcp_nodelay(UVTCPHandle handle, bool enable) { handle.Validate(); ThrowIfErrored(uv_tcp_nodelay(handle, enable ? 1 : 0)); }
public static void tcp_bind(UVTCPHandle handle, ref SockAddr addr, int flags) { handle.Validate(); ThrowIfErrored(uv_tcp_bind(handle, ref addr, flags)); }
public static void tcp_open(UVTCPHandle handle, IntPtr hSocket) { handle.Validate(); ThrowIfErrored(uv_tcp_open(handle, hSocket)); }
public static void tcp_init(UVLoopHandle loop, UVTCPHandle handle) { loop.Validate(); handle.Validate(); ThrowIfErrored(uv_tcp_init(loop, handle)); }