org.ros.internal.transport
Interface ClientHandshake

All Known Implementing Classes:
SubscriberHandshake

public interface ClientHandshake


Method Summary
 java.lang.String getErrorMessage()
           
 java.util.Map<java.lang.String,java.lang.String> getOutgoingHeader()
           
 boolean handshake(java.util.Map<java.lang.String,java.lang.String> incomingHeader)
           
 

Method Detail

handshake

boolean handshake(java.util.Map<java.lang.String,java.lang.String> incomingHeader)
Parameters:
incomingHeader - the ConnectionHeader sent by the server
Returns:
true if the handshake is successful, false otherwise

getOutgoingHeader

java.util.Map<java.lang.String,java.lang.String> getOutgoingHeader()
Returns:
the outgoing ConnectionHeader

getErrorMessage

java.lang.String getErrorMessage()
Returns:
the error String returned by the server if an error occurs, null otherwise