Bluetooth and socket
The socket function creates a socket for incoming or outgoing connections.:
To create a socket using Bluetooth, use the following settings:
- The af parameter of the socket function is always set to AF_BTH for Bluetooth sockets.
- The type parameter of the socket function is always SOCK_STREAM; SOCK_DGRAM sockets are not supported by Bluetooth.
- For the protocol parameter, BTHPROTO_RFCOMM is the supported protocol.
For more information, see Windows Sockets.
Related topics