Example #1
0
 public void Send(PacketOut packet, string title)
 {
     ServerConsole.WriteLine("Sending [{0}]",MessageLevel.Message, title);
     this.Send(packet);
 }
Example #2
0
 public void Send(PacketOut packet, string title)
 {
     ServerConsole.WriteLine("Sending [{0}]", MessageLevel.Message, title);
     this.Send(packet);
 }
Example #3
0
        /// <summary>
        /// Send a Command (Packet) asyncron
        /// </summary>
        /// <param name="packet"></param>
        public void Send(PacketOut packet)
        {
            byte[] buffer = packet.Compile();
            int length = buffer.Length;

            Utilities.ServerDump(buffer, length);

            Socket.BeginSend(
                buffer, 0,
                length, 0,
                new AsyncCallback(CallbackSend),
                Socket
            );
        }