|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprotocol.IrcProtocol
public class IrcProtocol
An implementation of IRC for HoneyRJ
| Constructor Summary | |
|---|---|
IrcProtocol()
|
|
| 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 msg)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IrcProtocol()
| Method Detail |
|---|
public int getPort()
LIProtocol
getPort in interface LIProtocolpublic java.lang.String toString()
LIProtocol
toString in interface LIProtocoltoString in class java.lang.Objectpublic boolean isConnectionOver()
LIProtocol
isConnectionOver in interface LIProtocolpublic java.util.Vector<java.lang.String> processInput(java.lang.String msg)
LIProtocol
processInput in interface LIProtocolmsg - String received on the socket from the client
LIHelper.vectorFromString(String)public TALK_FIRST whoTalksFirst()
LIProtocol
whoTalksFirst in interface LIProtocol
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||