Lines Matching full:socket
86 /* Go through socket list to check if current SAP is in use */
99 /* No socket is using current SAP, proceed with binding */
198 /* Search a socket with the SN */
202 /* Test if the CO socket is in Listen state or the CL socket is bound
364 /* Match service name in socket list */
558 // Store callbacks and socket index, so they can safely be
679 /* Reset all the socket info in the table */
855 /* Search a socket waiting for a FRAME */
858 /* Test if the socket is in connected state and if its SSAP and DSAP are valid */
862 /* socket found */
868 /* Test if a socket has been found */
871 /* Set socket state to disconnected */
877 /* Close the socket */
919 /* No active socket*/
927 * for requests not bound to a socket, like "service not found")
976 * \brief <b>Get the local options of a socket</b>.
979 * for a given connection-oriented socket. This function shall not be used with connectionless
983 * \param[in] psLocalOptions A pointer to be filled with the local options of the socket.
988 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
1004 /* Test the socket type */
1009 /* Test the socket state */
1026 * \brief <b>Get the local options of a socket</b>.
1029 * for a given connection-oriented socket. This function shall not be used with connectionless
1033 * \param[in] psRemoteOptions A pointer to be filled with the remote options of the socket.
1038 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
1054 /* Test the socket type */
1059 /* Test the socket state */
1167 * \brief <b>Create a socket on a LLCP-connected device</b>.
1169 * This function creates a socket for a given LLCP link. Sockets can be of two types :
1170 * connection-oriented and connectionless. If the socket is connection-oriented, the caller
1171 * must provide a working buffer to the socket in order to handle incoming data. This buffer
1175 * The options and working buffer are not required if the socket is used as a listening socket,
1179 * \param[in] eType The socket type.
1180 * \param[in] psOptions The options to be used with the socket.
1182 * \param[out] pLlcpSocket A pointer on the socket to be filled with a
1183 socket found on the socket table.
1184 * \param[in] pErr_Cb The callback to be called each time the socket
1193 * \retval NFCSTATUS_INSUFFICIENT_RESOURCES No more socket handle available.
1220 /* Test the socket type*/
1242 /* Search a socket free in the Socket Table*/
1247 /* Set the socket pointer to socket of the table */
1250 /* Store the socket info in the socket pointer */
1260 /* Test the socket options */
1267 /* Set socket options */
1270 /* Set socket local params (MIUX & RW) */
1310 /* Handle connectionless socket with buffering option */
1336 /* Set other socket internals */
1341 /* Store index of the socket */
1344 /* Set the socket into created state */
1361 * \brief <b>Close a socket on a LLCP-connected device</b>.
1363 * This function closes a LLCP socket previously created using phFriNfc_LlcpTransport_Socket.
1364 * If the socket was connected, it is first disconnected, and then closed.
1400 * \brief <b>Bind a socket to a local SAP</b>.
1402 * This function binds the socket to a local Service Access Point.
1411 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
1414 socket.
1470 /* Test if the nSap it is used by another socket */
1484 /* Set the nSap value of the socket */
1486 /* Set the socket state */
1499 * \brief <b>Listen for incoming connection requests on a socket</b>.
1501 * This function switches a socket into a listening state and registers a callback on
1502 * incoming connection requests. In this state, the socket is not able to communicate
1504 * which are still not connected. The socket keeps listening until it is closed, and
1510 * socket receive a connection request.
1517 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state to switch
1532 /* Check for socket state */
1537 /* Check for socket type */
1542 /* Test if a listen is not pending with this socket */
1559 * \brief <b>Register the socket service name</b>.
1561 * This function changes the service name of the corresponding socket.
1637 /* Store the listen socket SN */
1652 * \brief <b>Accept an incoming connection request for a socket</b>.
1655 * It must be used with the socket provided within the listen callback. The socket
1659 * \param[in] psOptions The options to be used with the socket.
1661 * \param[in] pErr_Cb The callback to be called each time the accepted socket
1686 /* Check for socket state */
1691 /* Check for socket type */
1696 /* Test the socket options */
1731 * \brief <b>Reject an incoming connection request for a socket</b>.
1734 * It must be used with the socket provided within the listen callback. The socket
1757 /* Check for socket state */
1762 /* Check for socket type */
1779 * \brief <b>Try to establish connection with a socket on a remote SAP</b>.
1782 * socket is not bound to a local SAP, it is implicitly bound to a free SAP.
1796 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
1819 /* Test if the socket is a connectionOriented socket */
1824 /* Test if the socket has a service name */
1829 /* Test if the socket is not in connecting or connected state*/
1836 /* Implicit bind if socket is not already bound */
1868 * \brief <b>Try to establish connection with a socket on a remote service, given its URI</b>.
1871 * socket is not bound to a local SAP, it is implicitly bound to a free SAP.
1885 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
1905 /* Test if the socket is a connectionOriented socket */
1910 /* Test if the socket is not in connect pending or connected state*/
1922 /* Implicit bind if socket is not already bound */
1954 * \brief <b>Disconnect a currently connected socket</b>.
1956 * This function initiates the disconnection of a previously connected socket.
1969 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
1986 /* Test if the socket is a connectionOriented socket */
1991 /* Test if the socket is connected state*/
2008 * \brief <b>Send data on a socket</b>.
2010 * This function is used to write data on a socket. This function
2011 * can only be called on a connection-oriented socket which is already
2027 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
2043 /* Test if the socket is a connectionOriented socket */
2048 /* Test if the socket is in connected state */
2076 * \brief <b>Read data on a socket</b>.
2078 * This function is used to read data from a socket. It reads at most the
2082 * can only be called on a connection-oriented socket.
2097 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
2113 /* Test if the socket is a connectionOriented socket */
2118 /* Test if the socket is in connected state */
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.
2148 * This function can only be called on a connectionless socket.
2164 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
2186 /* Test if the socket is a connectionless socket */
2191 /* Test if the socket is in an updated state */
2209 /* Test the length of the socket buffer for ConnectionLess mode*/
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.
2253 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
2269 /* Test if the socket is a connectionless socket */
2274 /* Test if the socket is in an updated state */