code: function Client(host, port) {
    this.host = host;
    this.port = port;
    this.socket = null;
    this.connected = false;
  
    // Useful protocol information
    this.req_counter = 1;
    this.req_table = {};
  
    this.on_handlers = {
      connect: function() {},
      print_string: function(m) {},
      presentation_start: function (pid) {},
      presentation_end: function (pid) {},
      new_package: function(p) {},
      debug_activate: function(obj) {},
      debug_setup: function(obj) {},
      debug_return: function(obj) {},
      profile_command_complete: function(msg) {},
      disconnect: function() {}
    }
  
    // Bootstrap the reading state
    this.setup_read(6, this.header_complete_callback);
  }
docs: /* Swank client class!