Example #1
0
        public void Connect(IPEndPoint remoteEndpoint)
        {
            CheckAddrVer(remoteEndpoint.AddressFamily);

            SockAddr addr = new SockAddr(remoteEndpoint);

            E(UDT.Connect(this.handle, ref addr, addr.Size));
        }
Example #2
0
        public void Bind(IPEndPoint localEndpoint)
        {
            CheckAddrVer(localEndpoint.AddressFamily);

            SockAddr addr = new SockAddr(localEndpoint);

            E(UDT.Bind(this.handle, ref addr, addr.Size));
        }
Example #3
0
 internal static extern int GetSockName(UdtSockHandle u, out SockAddr name, out int namelen);
Example #4
0
 internal static extern int Connect(UdtSockHandle u, ref SockAddr name, int namelen);
Example #5
0
 internal static extern UdtSockHandle Accept(UdtSockHandle u, out SockAddr name, out int namelen);
Example #6
0
 internal static extern int Bind(UdtSockHandle u, ref SockAddr name, int namelen);