Beispiel #1
0
        private static void OnConnection(UvConnectRequest req, int status, Exception exception, object state)
        {
            var client = (UvTcpClient)state;

            var connection = new UvTcpConnection(client._thread, client._connectSocket);

            client._connectTcs.TrySetResult(connection);
        }
Beispiel #2
0
        private void DoConnect()
        {
            _connectSocket = new UvTcpHandle();
            _connectSocket.Init(_thread.Loop, null);

            var connectReq = new UvConnectRequest();
            connectReq.Init(_thread.Loop);
            connectReq.Connect(_connectSocket, _ipEndPoint, _connectCallback, this);
        }
Beispiel #3
0
 public static extern void uv_pipe_connect(UvConnectRequest req,UvPipeHandle handle,string name,uv_connect_cb cb);
Beispiel #4
0
 public static extern void uv_tcp_connect(UvConnectRequest req,UvTcpHandle handle,ref SockAddr addr,uv_connect_cb cb);
Beispiel #5
0
 public void pipe_connect(UvConnectRequest req, UvPipeHandle handle, string name, uv_connect_cb cb)
 {
     req.Validate();
     handle.Validate();
     _uv_pipe_connect(req, handle, name, cb);
 }
Beispiel #6
0
 public void tcp_connect(UvConnectRequest req, UvTcpHandle handle, ref SockAddr addr, uv_connect_cb cb)
 {
     req.Validate();
     handle.Validate();
     _uv_tcp_connect(req, handle, ref addr, cb);
 }
Beispiel #7
0
 public static extern void uv_pipe_connect(UvConnectRequest req, UvPipeHandle handle, string name, uv_connect_cb cb);
Beispiel #8
0
 public static extern void uv_tcp_connect(UvConnectRequest req, UvTcpHandle handle, ref SockAddr addr, uv_connect_cb cb);
Beispiel #9
0
 public void pipe_connect(UvConnectRequest req, UvPipeHandle handle, string name, uv_connect_cb cb)
 {
     req.Validate();
     handle.Validate();
     _uv_pipe_connect(req, handle, name, cb);
 }
Beispiel #10
0
 public void tcp_connect(UvConnectRequest req, UvTcpHandle handle, ref SockAddr addr, uv_connect_cb cb)
 {
     req.Validate();
     handle.Validate();
     _uv_tcp_connect(req, handle, ref addr, cb);
 }