Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Commit

Permalink
create serverApp
Browse files Browse the repository at this point in the history
  • Loading branch information
T4ze committed Dec 9, 2017
1 parent de4cb89 commit f547b96
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/com/epita/guereza/ServerApp.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.epita.guereza;

import com.epita.eventbus.EventBusClient;
import com.epita.eventbus.NettyServer;

public class ServerApp extends App {
final NettyServer ns;
final int port;

protected ServerApp(EventBusClient eventBus, int port) {
super(eventBus);

ns = new NettyServer();
this.port = port;
}

@Override
public void run() {
ns.run(port);
}
}

0 comments on commit f547b96

Please sign in to comment.