|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Handshake
defines the process on how a party can determine whether the connection party is a valid counterpart. The same instance is to be used for both, client and server.
HandshakeException,
NetConnection,
NetConnectionHandler| Method Summary | |
|---|---|
void |
clientHandshake(NetConnection con)
performs a handshake for the given socket on behalf of a client |
Object |
getHandshakeAnswer(Object question)
used to generate the appropriate response to a question (must not return null). |
Object |
getHandshakeQuestion()
returns a question to be asked to validate the handshake (must not return null). |
String |
getIdentificationString()
a String used to identify a specific handshake specification |
void |
serverHandshake(NetConnection con)
performs a handshake for the given socket on behalf of a server |
| Method Detail |
|---|
String getIdentificationString()
Object getHandshakeAnswer(Object question)
Object getHandshakeQuestion()
void serverHandshake(NetConnection con)
throws IOException,
HandshakeException
IOException
HandshakeException
void clientHandshake(NetConnection con)
throws IOException,
HandshakeException
IOException
HandshakeException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||