Searched refs:tcpjob (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | tcp_misc.c | 50 np_tcpjob_t *tcpjob; in create_tcp_job() local 55 tcpjob = (np_tcpjob_t *)malloc(sizeof (np_tcpjob_t)); in create_tcp_job() 56 ASSERT(tcpjob, MALLOC_ERR); in create_tcp_job() 57 (void) memset(tcpjob, 0, sizeof (np_tcpjob_t)); in create_tcp_job() 59 tcpjob->np_port = "9100"; in create_tcp_job() 60 tcpjob->gen_data = genjob; in create_tcp_job() 61 tcpjob->gen_data->filesize = filesize; in create_tcp_job() 63 return (tcpjob); in create_tcp_job() 67 tcp_open(char *dest, np_tcpjob_t *tcpjob, int timeout) in tcp_open() argument 97 serv_addr.sin6_port = (int)htons(atoi(tcpjob->np_port)); in tcp_open() [all …]
|
H A D | netpr.c | 165 np_tcpjob_t *tcpjob; in main() local 351 tcpjob = (np_tcpjob_t *)create_tcp_job(job_data, filesize); in main() 352 if (tcpjob == NULL) in main() 373 tcpjob->np_port = tcp_port; in main() 374 syslog(LOG_DEBUG, "tcp_port %s", tcpjob->np_port); in main() 413 if ((sockfd = tcp_open(destination, tcpjob, 20)) == -1) { in main() 441 tcp_print(sockfd, pa, tcpjob)) != 0) { in main()
|