public void Connect(IPEndPoint remoteEndpoint) { CheckAddrVer(remoteEndpoint.AddressFamily); SockAddr addr = new SockAddr(remoteEndpoint); E(UDT.Connect(this.handle, ref addr, addr.Size)); }
public void Bind(IPEndPoint localEndpoint) { CheckAddrVer(localEndpoint.AddressFamily); SockAddr addr = new SockAddr(localEndpoint); E(UDT.Bind(this.handle, ref addr, addr.Size)); }
internal static extern int GetSockName(UdtSockHandle u, out SockAddr name, out int namelen);
internal static extern int Connect(UdtSockHandle u, ref SockAddr name, int namelen);
internal static extern UdtSockHandle Accept(UdtSockHandle u, out SockAddr name, out int namelen);
internal static extern int Bind(UdtSockHandle u, ref SockAddr name, int namelen);