Searched refs:data_sk (Results 1 – 1 of 1) sorted by relevance
/external/bluetooth/bluez/cups/ |
D | hcrp.c | 195 int i, ctrl_sk, data_sk, count, len, timeout = 0; in hcrp_print() local 236 if ((data_sk = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP)) < 0) { in hcrp_print() 249 if (bind(data_sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in hcrp_print() 251 close(data_sk); in hcrp_print() 264 if (connect(data_sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in hcrp_print() 266 close(data_sk); in hcrp_print() 279 if (getsockopt(data_sk, SOL_L2CAP, L2CAP_OPTIONS, &opts, &size) < 0) { in hcrp_print() 281 close(data_sk); in hcrp_print() 308 close(data_sk); in hcrp_print() 348 len = write(data_sk, buf, count); in hcrp_print() [all …]
|