Пример #1
0
        public void SendCommandToServer(string pName, string message)
        {
            NetOutgoingMessage msg = netClient.CreateMessage();

            msg.WritePadBits();
            msg.Write("COM:" + pName + ":" + message);
            netClient.SendMessage(msg, NetDeliveryMethod.ReliableOrdered);
        }
Пример #2
0
        public void SendMessage(string text)
        {
            NetOutgoingMessage message = client.CreateMessage(text);

            client.SendMessage(message, NetDeliveryMethod.ReliableOrdered);
            client.FlushSendQueue();
        }