package com.peterhi.net.remote;
import com.peterhi.net.rudp.RudpServer;
public class Server {
public static void main(String[] args) throws Exception {
RudpServer server = new RudpServer();
RmRegistry registry = new RmRegistry(server, 15000);
AboutMe am = new AboutMeImpl();
registry.publish(AboutMe.class, "aboutMe", am);
server.start(22222);
Thread.sleep(8000);
am.fireCallbackEvent("Callback occurred!");
Thread.sleep(2000);
am.fireCallbackEvent("Callback occurred 222!");
}
}