public PeerClient connect(ClientConfig config, PeerHandler handler) throws RPCException { return new DefaultPeerClient( TransportUtil.connect(config, new DataHandler(new DefaultPeerHandler(handler)))); }
public PeerServer bind(ClientConfig config, PeerHandler handler) throws RPCException { return new DefaultPeerServer( TransportUtil.bind(config, new DataHandler(new DefaultPeerHandler(handler)))); }