Lines Matching defs:sap
53 uint8_t sap;
57 /* Calculate authorized SAP range */
60 /* Make sure that we will return the same SAP if service name was already used in the past */
84 for(sap=min_sap_range ; sap<max_sap_range ; sap++)
86 /* Go through socket list to check if current SAP is in use */
90 (pSocketTable[i].socket_sSap == sap))
92 /* SAP is already in use */
99 /* No socket is using current SAP, proceed with binding */
100 *pnSap = sap;
105 /* If we reach this point, it means that no SAP is free */
212 /* Add new entry to cached service name/sap if not already in table */
275 /* Get current TID/SAP and try to encode them in SNL frame */
402 /* Decode TID and SAP */
676 /* Initialize cached service name/sap table */
784 /* Reset cached service name/sap table */
1136 * \brief <b>Discover remote services SAP using SDP protocol</b>.
1400 * \brief <b>Bind a socket to a local SAP</b>.
1405 * \param[in] nSap The SAP number to bind with, or 0 for auto-bind to a free SAP.
1413 * \retval NFCSTATUS_ALREADY_REGISTERED The selected SAP is already bound to another
1438 /* Calculate authorized SAP range */
1452 /* Handle dynamic SAP allocation */
1462 /* Test the SAP range */
1564 * \param[in] nSap SAP number associated to the service name.
1580 /* Check in cache if sap has been used for different service name */
1779 * \brief <b>Try to establish connection with a socket on a remote SAP</b>.
1781 * This function tries to connect to a given SAP on the remote peer. If the
1782 * socket is not bound to a local SAP, it is implicitly bound to a free SAP.
1785 * \param[in] nSap The destination SAP to connect to.
1839 /* Bind to a free sap */
1848 /* Test the SAP range for non SDP-advertised services */
1870 * This function tries to connect to a SAP designated by an URI. If the
1871 * socket is not bound to a local SAP, it is implicitly bound to a free SAP.
1874 * \param[in] psUri The URI corresponding to the destination SAP to connect to.
1925 /* Bind to a free sap */
1934 /* Test the SAP range for non SDP-advertised services */
2145 * \brief <b>Send data on a socket to a given destination SAP</b>.
2147 * This function is used to write data on a socket to a given destination SAP.
2152 * \param[in] nSap The destination SAP.
2235 * \brief <b>Read data on a socket and get the source SAP</b>.
2238 * the source SAP. This functions can only be called on a connectionless socket.