Class 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 Detail

      • NetHookNetworkListener

        public NetHookNetworkListener()
      • NetHookNetworkListener

        public NetHookNetworkListener​(java.lang.String path)
    • Method Detail

      • onIncomingNetworkMessage

        public void onIncomingNetworkMessage​(EMsg msgType,
                                             byte[] data)
        Description copied from interface: IDebugNetworkListener
        Called when a packet is received from the Steam server.
        Specified by:
        onIncomingNetworkMessage in interface IDebugNetworkListener
        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: IDebugNetworkListener
        Called when a packet is about to be sent to the Steam server.
        Specified by:
        onOutgoingNetworkMessage in interface IDebugNetworkListener
        Parameters:
        msgType - Network message type of this packet message.
        data - Raw packet data that was received.