Package in.dragonbra.javasteam.util
Class NetHookNetworkListener
- java.lang.Object
-
- in.dragonbra.javasteam.util.NetHookNetworkListener
-
- All Implemented Interfaces:
IDebugNetworkListener
public class NetHookNetworkListener extends java.lang.Object implements IDebugNetworkListener
Dump any network messages sent to and received from the Steam server that the client is connected to. These messages are dumped to file, and can be analyzed further with NetHookAnalyzer, a hex editor, or your own purpose-built tools.Be careful with this, sensitive data may be written to the disk (such as your Steam password).
-
-
Constructor Summary
Constructors Constructor Description NetHookNetworkListener()NetHookNetworkListener(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonIncomingNetworkMessage(EMsg msgType, byte[] data)Called when a packet is received from the Steam server.voidonOutgoingNetworkMessage(EMsg msgType, byte[] data)Called when a packet is about to be sent to the Steam server.
-
-
-
Method Detail
-
onIncomingNetworkMessage
public void onIncomingNetworkMessage(EMsg msgType, byte[] data)
Description copied from interface:IDebugNetworkListenerCalled when a packet is received from the Steam server.- Specified by:
onIncomingNetworkMessagein interfaceIDebugNetworkListener- Parameters:
msgType- Network message type of this packet message.data- Raw packet data that was received.
-
onOutgoingNetworkMessage
public void onOutgoingNetworkMessage(EMsg msgType, byte[] data)
Description copied from interface:IDebugNetworkListenerCalled when a packet is about to be sent to the Steam server.- Specified by:
onOutgoingNetworkMessagein interfaceIDebugNetworkListener- Parameters:
msgType- Network message type of this packet message.data- Raw packet data that was received.
-
-