コード例 #1
0
ファイル: Socket.cs プロジェクト: tmds/Tmds.Kestrel.Linux
        public unsafe PosixResult TryConnect(IPEndPoint endpoint)
        {
            IPSocketAddress socketAddress = new IPSocketAddress(endpoint);

            return(SocketInterop.Connect(this, (byte *)&socketAddress, sizeof(IPSocketAddress)));
        }
コード例 #2
0
        public unsafe PosixResult TryConnect(string unixPath)
        {
            UnixSocketAddress socketAddress = new UnixSocketAddress(unixPath);

            return(SocketInterop.Connect(this, (byte *)&socketAddress, sizeof(UnixSocketAddress)));
        }