コード例 #1
0
        public static TCPStream AcceptTCPStream(TCPServer server)
        {
            IntPtr    pointer = AcceptTCPStream_internal(server.Pointer);
            TCPStream ret     = new TCPStream(pointer);

            return(ret);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public static int TCPStreamPort(TCPStream stream)
 {
     return(TCPStreamPort_internal(stream.Pointer));
 }
コード例 #4
0
 public static int TCPStreamIP(TCPStream stream)
 {
     return(TCPStreamIP_internal(stream.Pointer));
 }
コード例 #5
0
 public static void CloseTCPStream(TCPStream stream)
 {
     CloseTCPStream_internal(stream.Pointer);
 }