tcpcatcher
Interface CustomHook


public interface CustomHook

Create your own hook class implementing this interface. Your class must not belong to any package in order to be plugged at runtime.


Method Summary
 void modifyPacket(tcpcatcher.TcpCatcherPacket tcpcatcherPacket)
          This method is called each time a packet goes through TcpCatcher
 void setUp()
          Initialize your hook (for instance open some log file here).
 void shutDown()
          Shutdown your hook (for instance close your log file).
 

Method Detail

setUp

void setUp()
Initialize your hook (for instance open some log file here).


modifyPacket

void modifyPacket(tcpcatcher.TcpCatcherPacket tcpcatcherPacket)
This method is called each time a packet goes through TcpCatcher. * @param tcpcatcherPacket : The tcp packet you can modify


shutDown

void shutDown()
Shutdown your hook (for instance close your log file).