예제 #1
0
        public void Send(OutgoingPacket _Packet)
        {
            if (Socket == null)
            {
                return;
            }

            try
            {
                System.IOStreamer.AppendOutgoingPacketLog(_Packet.ToString(), ID);
                Socket.Send(_Packet.ToDeltas(), 0, _Packet.ToDeltas().Length, SocketFlags.None);
            }
            catch (Exception e)
            {
                System.IOStreamer.AppendError("[Send(string)] " + e.Message);
            }
        }