|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LIProtocol
Interface that defines a protocol that can be plugged into a HoneyRJ
| Method Summary | |
|---|---|
int |
getPort()
Return the port the protocol listens for connections on ie 80 for HTTP |
boolean |
isConnectionOver()
return true if the server believes the connection to be over for whatever reason |
java.util.Vector<java.lang.String> |
processInput(java.lang.String messageFromClient)
Each time a message is received on the socket from the client, this method is called. |
java.lang.String |
toString()
return a textual representation of the protocol name use for use in logs ie HTTP, FTP, etc |
TALK_FIRST |
whoTalksFirst()
The return value of this method specifies if the server sends the first message in the protocol (SVR_FIRST) or if the client does (CLIENT_FIRST) The first message is defined as the first person to transmit a String over the network after the TCP handshake/Java socket setup. |
| Method Detail |
|---|
TALK_FIRST whoTalksFirst()
java.util.Vector<java.lang.String> processInput(java.lang.String messageFromClient)
messageFromClient - String received on the socket from the client
LIHelper.vectorFromString(String)int getPort()
java.lang.String toString()
toString in class java.lang.Objectboolean isConnectionOver()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||