*/
public static NettyServer createServer(String host, int port, final LocalHost localHost) {
return new NettyServer(localHost, host, port, new ConnectListener() {
@Override
public void onConnect(RemoteConnection connection) {
connection.write(new HostIdMsg(localHost.getId()));
}
});
}