const char *line_printer_size_hostname = hostname.c_str();
//###cerr << "opening " << hostname << ":" << portnum << "\n";
c = ZOOM_connection_new(line_printer_size_hostname, portnum);
const char *line_printer_size_hostname = hostname.c_str();
//###cerr << "opening " << hostname << ":" << portnum << "\n";
c = ZOOM_connection_new(line_printer_size_hostname, portnum);
const char *addinfo;
if ((errcode = ZOOM_connection_error(c, &errmsg, &addinfo)) != 0) {
//###cerr << "oops: no connect, errcode=" << errcode << "\n";
const char *addinfo;
if ((errcode = ZOOM_connection_error(c, &errmsg, &addinfo)) != 0) {
//###cerr << "oops: no connect, errcode=" << errcode << "\n";
// No way to tell whether ZOOM_connection_option_set() accepts key
ZOOM_connection_option_set(c, key.c_str(), val.c_str());
return true;
// No way to tell whether ZOOM_connection_option_set() accepts key
ZOOM_connection_option_set(c, key.c_str(), val.c_str());
return true;