public void startListening() throws IOException {
    logger.atInfo().log("Starting local command server on port %d...", port);
    socket = new ServerSocket();
    socket.bind(new InetSocketAddress(InetAddress.getByName(null), port));
    new SocketListenerThread(this).start();
  }
Socket handler that listens for commands to display flow graphs.
java/ui/src/main/java/com/google/security/zynamics/bindiff/socketserver/SocketServer.java