// Добавление клиента private static void AddClient(Socket sockClient) { Newclient = new SocketCoderClient(sockClient); ClientsList.Add(Newclient); Newclient.SetupRecieveCallback(); }
// (3) Create a Socket for Each Client and add his Socket to The ArrayList private static void AddClient(Socket sockClient) { Newclient = new SocketCoderClient(sockClient); ClientsList.Add(Newclient); // client.Sock.RemoteEndPoint - " has joined the room" Newclient.SetupRecieveCallback(); }
// (3) Create a Socket for Each Client and add his Socket to The ArrayList private static void AddClient(Socket sockClient) { Newclient = new SocketCoderClient(sockClient); // ClientsList.Add(Newclient); // client.Sock.RemoteEndPoint - " has joined the room" /* Byte[] byteDateLine = System.Text.Encoding.Unicode.GetBytes(" - Welcome to Our Room - "); Newclient.ReadOnlySocket.Send(byteDateLine, byteDateLine.Length, 0);*/ Newclient.SetupRecieveCallback(); }