예제 #1
0
        public void AcceptAnother()
        {
            int    status = -1;
            Socket s      = server.Listen(ref status);

            socket2[curr] = new CustomSocket(s);
        }
예제 #2
0
        public void Accept()
        {
            int    status = -1;
            Socket s      = server.Listen(ref status);

            socket1[curr] = new CustomSocket(s);
            string str  = socket1[curr].GetRemoteEndpoint();
            string str1 = str + " connected" + Environment.NewLine;

            connectionManagertb.AppendText(str1);
        }