Home | History | Annotate | Download | only in tools

Lines Matching defs:sk

80 	int i, sk, lost;
95 sk = socket(PF_BLUETOOTH, SOCK_RAW, BTPROTO_L2CAP);
96 if (sk < 0) {
106 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
116 if (connect(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
125 if (getsockname(sk, (struct sockaddr *) &addr, &optlen) < 0) {
156 if (send(sk, send_buf, L2CAP_CMD_HDR_SIZE + size, 0) <= 0) {
167 pf[0].fd = sk;
180 if ((err = recv(sk, recv_buf, L2CAP_CMD_HDR_SIZE + size, 0)) < 0) {
248 close(sk);