コード例 #1
0
ファイル: UvTcpClient.cs プロジェクト: AlexGhiondea/corefxlab
        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);
        }
コード例 #2
0
ファイル: UvTcpClient.cs プロジェクト: AlexGhiondea/corefxlab
        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);
        }
コード例 #3
0
ファイル: Uv.cs プロジェクト: yellowhuang/corefxlab
 public static extern void uv_pipe_connect(UvConnectRequest req,UvPipeHandle handle,string name,uv_connect_cb cb);
コード例 #4
0
ファイル: Uv.cs プロジェクト: yellowhuang/corefxlab
 public static extern void uv_tcp_connect(UvConnectRequest req,UvTcpHandle handle,ref SockAddr addr,uv_connect_cb cb);
コード例 #5
0
ファイル: Uv.cs プロジェクト: yellowhuang/corefxlab
 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);
 }
コード例 #6
0
ファイル: Uv.cs プロジェクト: yellowhuang/corefxlab
 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);
 }
コード例 #7
0
ファイル: Uv.cs プロジェクト: AlexGhiondea/corefxlab
 public static extern void uv_pipe_connect(UvConnectRequest req, UvPipeHandle handle, string name, uv_connect_cb cb);
コード例 #8
0
ファイル: Uv.cs プロジェクト: AlexGhiondea/corefxlab
 public static extern void uv_tcp_connect(UvConnectRequest req, UvTcpHandle handle, ref SockAddr addr, uv_connect_cb cb);
コード例 #9
0
ファイル: Uv.cs プロジェクト: AlexGhiondea/corefxlab
 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);
 }
コード例 #10
0
ファイル: Uv.cs プロジェクト: AlexGhiondea/corefxlab
 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);
 }