Пример #1
0
 public HandshakeResponse respond(HandshakeResponse response, boolean outgoing) {
   Properties props = new Properties();
   return HandshakeResponse.createResponse(props);
 }
Пример #2
0
 public HandshakeResponse respond(HandshakeResponse response, boolean outgoing) {
   Properties props = headersFactory.createUltrapeerHeaders("127.0.0.1");
   props.put(HeaderNames.X_DEGREE, "42");
   return HandshakeResponse.createResponse(props);
 }