|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlowinteraction.LIModule
public class LIModule
An LIModule listens on a port specified by a LIProtocol and launches threads to handle client connections. LIModules are part of a HoneyRJ
HoneyRJ,
LIModuleThread| Constructor Summary | |
|---|---|
LIModule(LIProtocol protocol)
Create the module from the given protocol |
|
| Method Summary | |
|---|---|
HoneyRJ |
getParent()
|
int |
getPort()
return the port this Module listens on (as defined by the protocol) |
LIProtocol |
getProtocol()
|
boolean |
isStarted()
Has our thread been created/socket started? |
void |
pauseListeningForConnections()
Stop listening for client connections temporarily |
protected void |
recieveLogFileFromThread(LogFile file)
A child thread that is communicating with a client should call this method upon closing the connection to store the log |
void |
registerParent(HoneyRJ honey)
Called once a HoneyRJ adds this module to itself. |
void |
run()
thread run method start listening on the socket and launch sub-threads to handle connections when clients connect |
void |
startInteractionModule()
Launch into a thread and start listening for client connections |
void |
startListeningForConnections()
instruct the module to begin listening does nothing if module is already started |
void |
stopInteractionModule()
Stops listening, stores the log into the HoneyRJ parent and stops the thread. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LIModule(LIProtocol protocol)
protocol - LIProtcol object to implement hereLIProtocol| Method Detail |
|---|
public int getPort()
LIProtocol.getPort()public void registerParent(HoneyRJ honey)
honey - parent HoneyRJHoneyRJ.RegisterService(LIModule)public void run()
run in interface java.lang.Runnablepublic void startListeningForConnections()
public HoneyRJ getParent()
public void pauseListeningForConnections()
public void startInteractionModule()
throws java.io.IOException
java.io.IOException - if the socket can't be startedpublic void stopInteractionModule()
public LIProtocol getProtocol()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isStarted()
protected void recieveLogFileFromThread(LogFile file)
file -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||