view src/msgpack/test/TestMsgPackServer.java @ 3:178aeb91d108 draft default tip

add pom.xml
author one
date Mon, 04 Jun 2012 13:53:39 +0900
parents 830afc6475b0
children
line wrap: on
line source

package msgpack.test;

import org.msgpack.rpc.Server;
import org.msgpack.rpc.loop.EventLoop;
 
public class TestMsgPackServer {
    public String hello(String msg, int a) {
        return msg;
    }
    
    public static void main(String[] args) throws Exception {
        EventLoop loop = EventLoop.defaultEventLoop();
  
        Server svr = new Server();
        svr.serve(new TestMsgPackServer());
        svr.listen(8888);
 
        loop.join();
    }
}