Exemple #1
0
        static void Main(string[] args)
        {
            Server NetObj = null;

            Console.WriteLine(Server.GetIP());
            NetObj = new Server();
            NetObj.Create();
            NetObj.Traversal = RecieveData;
        }
Exemple #2
0
        public void Stop()
        {
            m_Alive = false;
            TcpClient killClient = new TcpClient();

            killClient.Connect(Server.GetIP(), 25000);
            byte[] kill = new byte[sizeof(int)];
            kill = BitConverter.GetBytes((int)0xC0DE);
            killClient.GetStream().Write(kill, 0, sizeof(int));
            m_ListenThread.Join();
        }