Lines Matching defs:sock
47 isc_socket_t *sock;
50 sock = event->ev_sender;
53 printf("my_send: %s task %p\n\t(sock %p, base %p, length %d, n %d, "
55 (char *)(event->ev_arg), task, sock,
60 isc_socket_detach(&sock);
71 isc_socket_t *sock;
77 sock = event->ev_sender;
80 printf("Socket %s (sock %p, base %p, length %d, n %d, result %d)\n",
81 (char *)(event->ev_arg), sock,
97 isc_socket_detach(&sock);
117 isc_socket_send(sock, ®ion, task, my_send, event->ev_arg);
124 isc_socket_recv(sock, &dev->region, 1, task, my_recv, event->ev_arg);
131 isc_socket_t *sock;
134 sock = event->ev_sender;
137 printf("my_http_get: %s task %p\n\t(sock %p, base %p, length %d, "
139 (char *)(event->ev_arg), task, sock,
144 isc_socket_detach(&sock);
150 isc_socket_recv(sock, &dev->region, 1, task, my_recv, event->ev_arg);
157 isc_socket_t *sock;
162 sock = event->ev_sender;
169 isc_socket_detach(&sock);
185 isc_socket_send(sock, ®ion, task, my_http_get, event->ev_arg);
241 isc_socket_t *sock = event->ev_arg;
243 printf("Timeout, canceling IO on socket %p (task %p)\n", sock, task);
245 isc_socket_cancel(sock, NULL, ISC_SOCKCANCEL_ALL);