--- a/middleware/Communication/Server.cs Thu Jun 21 17:51:27 2012 +0200
+++ b/middleware/Communication/Server.cs Fri Jun 29 15:37:26 2012 +0200
@@ -33,10 +33,13 @@
private TUIOServer TUIOserver;
private WSServer WSserver;
- public Server(String host, int port, int _timerElapsing)
+ /*
+ * Constructeur. Il prend les paramètres des deux serveurs.
+ */
+ public Server(String tuioHost, int tuioPort, int _tuioTimerElapsing, String wsHost, int wsPort, int _wsTimerElapsing)
{
- TUIOserver = new TUIOServer(host, 8080, _timerElapsing);
- WSserver = new WSServer(host, 8090, _timerElapsing);
+ TUIOserver = new TUIOServer(wsHost, tuioPort, _tuioTimerElapsing);
+ WSserver = new WSServer(wsHost, wsPort, _wsTimerElapsing);
}
/*