org.ros.internal.transport
Interface ClientHandshake
- All Known Implementing Classes:
- SubscriberHandshake
public interface ClientHandshake
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