Lines Matching refs:sock_fd
74 ret = sendmsg(cps->sock_fd, &mh, 0); in colo_proxy_send()
91 ret = send(cps->sock_fd, (uint8_t *)&len, sizeof(len), 0); in colo_userspace_proxy_send()
96 ret = send(cps->sock_fd, (uint8_t *)buff, size, 0); in colo_userspace_proxy_send()
119 ret = setsockopt(cps->sock_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, in colo_userspace_proxy_recv()
128 ret = recv(cps->sock_fd, (uint8_t *)&len, sizeof(len), 0); in colo_userspace_proxy_recv()
134 ret = recv(cps->sock_fd, buff, size, 0); in colo_userspace_proxy_recv()
163 setsockopt(cps->sock_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in colo_proxy_recv()
169 ret = recvmsg(cps->sock_fd, &mh, 0); in colo_proxy_recv()
197 setsockopt(cps->sock_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in colo_proxy_recv()
236 cps->sock_fd = skfd; in colo_proxy_setup()
262 cps->sock_fd = skfd; in colo_proxy_setup()
319 close(cps->sock_fd); in colo_proxy_setup()
320 cps->sock_fd = -1; in colo_proxy_setup()
334 if (cps->sock_fd >= 0) { in colo_proxy_teardown()
335 close(cps->sock_fd); in colo_proxy_teardown()
336 cps->sock_fd = -1; in colo_proxy_teardown()