public Task <int> SendPacketAsync(string signature) { if (OutFormat == null) { throw new NullReferenceException("Outgoing format cannot be null."); } return(SendAsync(HPacket.ToBytes(OutFormat, signature))); }
public DataInterceptedEventArgs(HPacket packet, int step, bool isOutgoing) { _ogData = packet.ToBytes(); _ogString = packet.ToString(); Step = step; Packet = packet; IsOutgoing = isOutgoing; Timestamp = DateTime.Now; }
public Task <int> SendToServerAsync(HPacket packet) { return(SendToServerAsync(packet.ToBytes())); }
public Task <int> SendToClientAsync(HPacket packet) { return(SendToClientAsync(packet.ToBytes())); }
public ValueTask <int> SendAsync(HPacket packet) { return(SendAsync(packet.ToBytes())); }