Home
last modified time | relevance | path

Searched refs:psock (Results 1 – 1 of 1) sorted by relevance

/packages/services/BuiltInPrintService/jni/lib/
Dprinter.c39 int psock; member
56 print_job->psock = open(printer_addr, O_CREAT | O_WRONLY | O_TRUNC, in _init()
59 if (print_job->psock == ERROR) { in _init()
66 print_job->psock = wConnect(printer_addr, print_job->port_num, _wprint_timeout_msec); in _init()
69 print_job->job_status = ((print_job->psock != -1) ? OK : ERROR); in _init()
99 bytes_written = write(print_job->psock, buffer, length); in _send_data()
114 FD_SET(print_job->psock, &w_fds); in _send_data()
117 selreturn = select(print_job->psock + 1, NULL, &w_fds, NULL, &timeout); in _send_data()
122 if (FD_ISSET(print_job->psock, &w_fds)) { in _send_data()
123 bytes_written = write(print_job->psock, buffer, length); in _send_data()
[all …]