class
Lapis::Multiplayer::Spy
- Lapis::Multiplayer::Spy
- Reference
- Object
Overview
Wireshark-style packet inspector and network condition simulator
Defined in:
libgodot/multiplayer/harness.crInstance Method Summary
- #assert_max_bandwidth(max_kb_per_sec : Float64) : Nil
- #assert_rpc_sent(from : Int32, to : Int32, method : String | Symbol) : Nil
- #bandwidth_kb_per_sec : Float64
-
#capture_r2_forensics!(reason : String, fault_address : UInt64 = 0_u64) : Lapis::Debugger::CrashReport | Nil
Captures a radare2 forensic memory snapshot when an anomaly or assertion failure occurs
- #clear : Void
- #disable_r2_pipeline! : Nil
- #enable_r2_pipeline! : Nil
- #filter(&block : PacketInfo -> Bool) : Array(PacketInfo)
- #forensics_snapshots : Array(Lapis::Debugger::CrashReport)
- #latency_ms : Float64
- #latency_ms=(latency_ms : Float64)
- #on_anomaly : Proc(PacketInfo, String, Nil) | Nil
- #on_anomaly=(on_anomaly : Proc(PacketInfo, String, Nil) | Nil)
- #packet_loss : Float64
- #packet_loss=(packet_loss : Float64)
- #packets : Array(PacketInfo)
- #r2_pipeline_enabled=(r2_pipeline_enabled : Bool)
- #r2_pipeline_enabled? : Bool
- #record(sender_id : Int32, receiver_id : Int32, method_name : String | Symbol, channel : Int32 = 0, transfer_mode : String = "Reliable", payload_bytes : Int32 = 32) : PacketInfo
- #start_time : ::Time::Instant
- #total_bytes : Int64
Instance Method Detail
def capture_r2_forensics!(reason : String, fault_address : UInt64 = 0_u64) : Lapis::Debugger::CrashReport | Nil
#
Captures a radare2 forensic memory snapshot when an anomaly or assertion failure occurs
def record(sender_id : Int32, receiver_id : Int32, method_name : String | Symbol, channel : Int32 = 0, transfer_mode : String = "Reliable", payload_bytes : Int32 = 32) : PacketInfo
#