Example #1
0
        public override void Write(NetData data)
        {
            if (stream == null)
            {
                return;
            }

            stream.Write(data.ToArray(), 0, data.DataLength);
        }
Example #2
0
        public override void Write(NetData data)
        {
            if (stream == null)
            {
                Log("ERROR: Cannot send data, client is not connected!");
                return;
            }

            stream.Write(data.ToArray(), 0, data.DataLength);
        }