#include <nwconnec.h>NWCCODE N_API NWLicenseConn( NWCONN_HANDLE conn);
After calling NWLicenseConn, the licensed count will be incremented; and, if necessary, the license NCP will be sent. If conn is already in a licensed state, HAREWARE_ALREADY_LICENSED is returned.
On the Mac OS, the default is to open a connection so that it is licensed. If you do not wish to create a licensed connection, you should specify the NW_OPEN_UNLICENSED flag in the NWOpenConnByAddr. For NWGetConnectionSlot, specify the GET_UNLICENSED flag.