Bluetooth Functions

The following table lists the functions for Bluetooth.

Note   Some of these functions are Winsock functions. However, the information that is presented in them is specific to Bluetooth.

Programming element Description
accept (Bluetooth) (Windows CE) This function permits an incoming connection attempt on a socket.
bind (Bluetooth) (Windows CE) This function associates a local address with a socket.
connect (Bluetooth) (Windows CE) This function establishes a connection to a specified socket.
getpeername (Bluetooth) (Windows CE) This function retrieves the name of the peer to which a socket is connected.
getsockname (Bluetooth) (Windows CE) This function retrieves the local name for a socket.
getsockopt (Bluetooth) (Windows CE) This function retrieves a socket option.
setsockopt (Bluetooth) (Windows CE) This function sets a socket option.
socket (Bluetooth) (Windows CE) This function creates a socket that is bound to a specific service provider.
WSALookupServiceBegin (Bluetooth) (Windows CE) This function initiates a client query that is constrained by the information contained within a WSAQUERYSET structure.
WSALookupServiceEnd (Bluetooth) (Windows CE) This function frees the handle after previous calls to the WSALookupServiceBegin and WSALookupServiceNext functions.
WSALookupServiceNext (Bluetooth) (Windows CE) This function retrieves the results of an SDP search.
WSASetService (Bluetooth) (Windows CE) This function adds, updates, or removes service records from the local SDP database.
BthGetMode (PPC+SP) Retrieves the current mode of operation of the Bluetooth radio.
BthSetMode (PPC+SP) Sets the Bluetooth mode of operation, reflects it in the control panel, and persists that state across hardware insertion and reboot.

See Also

Bluetooth | Bluetooth API

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.