Пример #1
0
 public PeerClient connect(ClientConfig config, PeerHandler handler) throws RPCException {
   return new DefaultPeerClient(
       TransportUtil.connect(config, new DataHandler(new DefaultPeerHandler(handler))));
 }
Пример #2
0
 public PeerServer bind(ClientConfig config, PeerHandler handler) throws RPCException {
   return new DefaultPeerServer(
       TransportUtil.bind(config, new DataHandler(new DefaultPeerHandler(handler))));
 }