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