public void Send(PacketOut packet, string title) { ServerConsole.WriteLine("Sending [{0}]",MessageLevel.Message, title); this.Send(packet); }
public void Send(PacketOut packet, string title) { ServerConsole.WriteLine("Sending [{0}]", MessageLevel.Message, title); this.Send(packet); }
/// <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 ); }