public void setDisconnectedCallback(ServerHandler.disconnectEvent disconnectCallback)
 {
     this.serverHandler.setDisconnectCallback(disconnectCallback);
 }
 public void setMessageHandler(ServerHandler.messageHandler messageHandlerCallback)
 {
     this.serverHandler.setMessageHandlerCallback(messageHandlerCallback);
 }
 private Connection()
 {
     this.port = Properties.Settings.Default.ConnectionPort;
     serverHandler = new ServerHandler();
     this.client = new Client.Client(port, serverHandler);
 }