Searched refs:btsocket (Results 1 – 1 of 1) sorted by relevance
599 int btsocket = socket(PF_INET, SOCK_STREAM, tcp->p_proto); in socket_connection_open_tcp() local600 if(btsocket == -1){ in socket_connection_open_tcp()614 if(connect(btsocket, (struct sockaddr*)&btdaemon_address, sizeof (btdaemon_address)) == -1){ in socket_connection_open_tcp()618 return socket_connection_register_new_connection(btsocket); in socket_connection_open_tcp()696 int btsocket = socket(AF_UNIX, SOCK_STREAM, 0); in socket_connection_open_unix() local697 if(btsocket == -1){ in socket_connection_open_unix()705 if (connect(btsocket, (struct sockaddr *)&server, sizeof (server)) == -1){ in socket_connection_open_unix()709 return socket_connection_register_new_connection(btsocket); in socket_connection_open_unix()