Exemplo n.º 1
0
        public TCPServer(string port, string Endpoint)
        {
            m_Endpoint = Endpoint;
            m_Port     = port;

            m_Endpoint = UsefullToolz.GetIP();
            m_Port     = "3000";
        }
Exemplo n.º 2
0
        public TCPClient(string port = "", string Endpoint = "")
        {
            m_Endpoint = Endpoint == "" ? UsefullToolz.GetIP() : Endpoint;
            m_Port     = port == "" ? 3000 : int.Parse(port);

            m_Client = new TcpClient();
            m_Client.Connect(m_Endpoint, m_Port);
            m_Stream = m_Client.GetStream();
        }
Exemplo n.º 3
0
 public TCPServer(string port = "", string Endpoint = "")
 {
     m_Endpoint = Endpoint == "" ? UsefullToolz.GetIP() : Endpoint;
     m_Port     = port == "" ? "3000" : port;
 }