import com.peterhi.net.rudp.RudpServer;
public class RemoteClient {
public static void main(String[] args) throws Exception {
RudpServer client = new RudpServer();
final RemoteRegistry registry = new RemoteRegistry(client, 8000);
client.start(0);
SocketAddress address = new InetSocketAddress(
InetAddress.getLocalHost(), 22222);
final RemoteInterface ri = registry.subscribe(address, "remoteInterface",
RemoteInterface.class, 80000);
System.out.println(ri);