public void AcceptAnother() { int status = -1; Socket s = server.Listen(ref status); socket2[curr] = new CustomSocket(s); }
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); }