public void Send(IPCWriter writer) { try { var packet = writer.GetRawPacket(); AwesomeSockets.Buffer.FinalizeBuffer(packet); SendIPC(packet); var opcode = writer.Opcode; int size = writer.Size; events.IPCSentPacket(this, new IPCPacketEventArgs(opcode, size)); } catch (Exception ex) { Log.Error("Sending IPC Packet failed on packet {0}", writer.GetRawPacket().ToString(), "[ObjectBuddy::SyncReceiver::" + ex.TargetSite + "()]"); } }
public void Send(IPCWriter writer) { var packet = writer.GetRawPacket(); AwesomeSockets.Buffer.FinalizeBuffer(packet); SendIPC(packet); }