Exemplo n.º 1
0
 public void tcp_bind(UvTcpHandle handle, ref SockAddr addr, int flags)
 {
     handle.Validate();
     Check(_uv_tcp_bind(handle, ref addr, flags));
     if (Platform.System == OS.Windows)
     {
         tcp_bind_windows_extras(handle);
     }
 }
Exemplo n.º 2
0
        public void Connect(
            UvTcpHandle tcp,
            ref SockAddr address,
            Action <UvConnectRequest, int, Exception, object> callback,
            object state)
        {
            _callback = callback;
            _state    = state;

            Pin();
            _uv.tcp_connect(this, tcp, ref address, _uv_connect_cb);
        }
Exemplo n.º 3
0
 public static extern int uv_tcp_getpeername(UvTcpHandle handle,out SockAddr name,ref int namelen);
Exemplo n.º 4
0
 public static extern int uv_ip6_addr(string ip,int port,out SockAddr addr);
Exemplo n.º 5
0
 public static extern int uv_tcp_connect(UvConnectRequest req,UvTcpHandle handle,ref SockAddr addr,uv_connect_cb cb);
Exemplo n.º 6
0
 public static extern int uv_tcp_bind(UvTcpHandle handle,ref SockAddr addr,int flags);
Exemplo n.º 7
0
 public void tcp_getpeername(UvTcpHandle handle, out SockAddr addr, ref int namelen)
 {
     handle.Validate();
     Check(_uv_tcp_getpeername(handle, out addr, ref namelen));
 }
Exemplo n.º 8
0
 public int ip6_addr(string ip, int port, out SockAddr addr, out Exception error)
 {
     return(Check(_uv_ip6_addr(ip, port, out addr), out error));
 }
Exemplo n.º 9
0
 public void tcp_connect(UvConnectRequest req, UvTcpHandle handle, ref SockAddr addr, uv_connect_cb connect_cb)
 {
     req.Validate();
     handle.Validate();
     _uv_tcp_connect(req, handle, ref addr, connect_cb);
 }