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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for