Beispiel #1
0
        public static void SendWelcomeMessage(int connectionID)
        {
            ByteBuffer buffer = new ByteBuffer();

            buffer.WriteInteger((int)ServerPackets.SWelcomeMessage);
            buffer.WriteString("HELLO NEW CLIENT!PLEASE SUFFER!");
            ClientManager.SendDataTo(connectionID, buffer.ToArray());
            buffer.Dispose();
        }