Bluetooth and listen, select, and closesocket

Bluetooth uses the listen, select, and closesocket functions without any modification from standard Windows Sockets programming.

As with Windows Sockets, the closesocket function frees resources associated with the socket.

When calling the listen function, it is strongly recommended that a low value is used for the backlog parameter (typically 2 to 4), since only a few client connections are accepted. This reduces the system resources that are allocated for use by the listening socket.

Windows Sockets

closesocket

listen

select