public static TCPStream AcceptTCPStream(TCPServer server) { IntPtr pointer = AcceptTCPStream_internal(server.Pointer); TCPStream ret = new TCPStream(pointer); return(ret); }
public static TCPStream OpenTCPStream(string server, int serverPort, int localPort = 0) { IntPtr pointer = OpenTCPStream_internal(server, serverPort, localPort); TCPStream ret = new TCPStream(pointer); return(ret); }
public static int TCPStreamPort(TCPStream stream) { return(TCPStreamPort_internal(stream.Pointer)); }
public static int TCPStreamIP(TCPStream stream) { return(TCPStreamIP_internal(stream.Pointer)); }
public static void CloseTCPStream(TCPStream stream) { CloseTCPStream_internal(stream.Pointer); }