Home | History | Annotate | Download | only in src

Lines Matching refs:sock_fd

63 int sock_send_all(int sock_fd, const uint8_t* buf, int len) {
68 OSI_NO_INTR(ret = send(sock_fd, buf, s, 0));
70 BTIF_TRACE_ERROR("sock fd:%d send errno:%d, ret:%d", sock_fd, errno, ret);
78 int sock_recv_all(int sock_fd, uint8_t* buf, int len) {
83 OSI_NO_INTR(ret = recv(sock_fd, buf, r, MSG_WAITALL));
85 BTIF_TRACE_ERROR("sock fd:%d recv errno:%d, ret:%d", sock_fd, errno, ret);
94 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) {
102 if (sock_fd == -1 || send_fd == -1) return -1;
126 OSI_NO_INTR(ret = sendmsg(sock_fd, &msg, MSG_NOSIGNAL));
129 sock_fd, send_fd, (int)ret, errno, strerror(errno));