Lines Matching refs:printer_addr
47 static status_t _init(const ifc_print_job_t *this_p, const char *printer_addr, int port, in _init() argument
56 print_job->psock = open(printer_addr, O_CREAT | O_WRONLY | O_TRUNC, in _init()
60 LOGE("cannot create output file : %s, %s", printer_addr, strerror(errno)); in _init()
62 LOGI("opened %s for writing", printer_addr); in _init()
66 print_job->psock = wConnect(printer_addr, print_job->port_num, _wprint_timeout_msec); in _init()
176 int wConnect(const char *printer_addr, int port_num, long int timeout_msec) { in wConnect() argument
190 if ((sin.sin_addr.s_addr = inet_addr(printer_addr)) == -1) { in wConnect()
196 if ((h_info = gethostbyname(printer_addr)) != NULL) { in wConnect()
199 LOGE("ERROR: unknown host %s", printer_addr); in wConnect()
231 LOGI("connected to %s:%d", printer_addr, port_num); in wConnect()
235 LOGE("cannot connect on %s:%d, %s", printer_addr, port_num, strerror(errno)); in wConnect()
238 LOGE("connecting to %s:%d .. timed out after %ld milliseconds", printer_addr, in wConnect()