Ejemplo n.º 1
0
        public void Accept1()
        {
            int    status = -1;
            Socket s      = tcp.SetUpANewConnection(ref status);

            socketList1[currentClient] = new SocketModel(s);

            string str = socketList1[currentClient].GetRemoteEndpoint();

            txbConnectionManager.AppendText("\nNew connection from: " + str + "id" + currentClient + "\n");
        }
Ejemplo n.º 2
0
        public void Accept()
        {
            int    status = -1;
            Socket s      = tcp.SetUpANewConnection(ref status);

            socketList[currentClient] = new SocketModel(s);
            string str  = socketList[currentClient].GetRemoteEndpoint();
            string str1 = "New connection from: " + str + "\n";

            textBox3.AppendText(str1);
        }
Ejemplo n.º 3
0
        public void AcceptPlayer()
        {
            int    status = -1;
            Socket s      = tcp.SetUpANewConnection(ref status);

            socketlist1[currentClient] = new SocketModel(s);

            string st  = socketlist1[currentClient].GetRemoteEndpoint();
            string st1 = "New connect from: " + st;

            Console.WriteLine(st1);
            lbManageConnect.Items.Add(st1);
        }
Ejemplo n.º 4
0
        public SocketModel Accept()
        {
            int         status = -1;
            Socket      s      = tcp.SetUpANewConnection(ref status);
            SocketModel player = new SocketModel(s);
            //Room.Add(player);
            //socketList[currentClient] = new SocketModel(s);
            //string str = socketList[currentClient].GetRemoteEndpoint();
            string str  = player.GetRemoteEndpoint();
            string str1 = "New connection from: " + str + "\n";

            textBox3.AppendText(str1);
            return(player);
        }