Lines Matching refs:dev

40 	isc_socketevent_t *dev;
43 dev = (isc_socketevent_t *)event;
48 dev->region.base, dev->region.length,
49 dev->n, dev->result);
51 if (dev->result != ISC_R_SUCCESS) {
56 if (dev->region.base != NULL)
57 isc_mem_put(mctx, dev->region.base, dev->region.length);
65 isc_socketevent_t *dev;
71 dev = (isc_socketevent_t *)event;
75 dev->region.base, dev->region.length,
76 dev->n, dev->result);
77 if (dev->address.type.sa.sa_family == AF_INET6) {
78 inet_ntop(AF_INET6, &dev->address.type.sin6.sin6_addr,
81 ntohs(dev->address.type.sin6.sin6_port));
83 inet_ntop(AF_INET, &dev->address.type.sin.sin_addr,
86 ntohs(dev->address.type.sin.sin_port));
89 if (dev->result != ISC_R_SUCCESS) {
92 if (dev->region.base != NULL)
93 isc_mem_put(mctx, dev->region.base, dev->region.length);
104 region = dev->region;
106 (int)dev->n, (char *)region.base);
115 region = dev->region;
117 (int)dev->n, (char *)region.base);
120 isc_socket_recv(sock, &dev->region, 1, task, my_recv, event->ev_arg);
128 isc_socketevent_t *dev;
131 dev = (isc_socketevent_t *)event;
136 dev->region.base, dev->region.length,
137 dev->n, dev->result);
139 if (dev->result != ISC_R_SUCCESS) {
142 if (dev->region.base != NULL)
143 isc_mem_put(mctx, dev->region.base, dev->region.length);
148 isc_socket_recv(sock, &dev->region, 1, task, my_recv, event->ev_arg);
156 isc_socket_connev_t *dev;
161 dev = (isc_socket_connev_t *)event;
164 dev->result);
166 if (dev->result != ISC_R_SUCCESS) {
196 isc_socket_newconnev_t *dev;
201 dev = (isc_socket_newconnev_t *)event;
204 name, task, event->ev_sender, dev->newsocket, dev->result);
207 if (dev->result == ISC_R_SUCCESS) {
225 isc_socket_recv(dev->newsocket, &region, 1,