Lines Matching full:socket
60 /* Test the socket */
65 /* Set socket state to Connected */
75 /* Store the Llcp socket in a local Llcp socket */
78 /* Reset the socket and set the socket state to default */
160 /* Set the socket state to accepted */
185 /* Set the socket in connecting state */
210 /* Set the socket in connecting state */
508 /* Search a socket with the SN */
511 /* Test if the socket is in Listen state and if its SN is the good one */
516 /* socket with the SN found */
521 /* Get the new ssap number, it is the ssap number of the socket found */
523 /* Get the ListenCB of the socket */
532 /* Search a socket with the DSAP */
535 /* Test if the socket is in Listen state and if its port number is the good one */
538 /* socket with the SN found */
543 /* Get the Listen CB and the Context of the socket */
552 /* Test if a socket has beeen found */
558 /* Search a socket free and no socket connect on this DSAP*/
567 /* Create a communication socket */
570 /* Set the communication option of the Remote Socket */
574 /* Set SSAP/DSAP of the new socket created for the communication with the remote */
578 /* Set the state and the type of the new socket */
592 /* Reset Socket Information */
596 /* Set SSAP/DSAP of the new socket created for the communication with the remote */
600 /* Set the state and the type of the new socket */
610 /* Test if a socket has been found */
618 /* No more socket are available */
675 /* Search a socket in connecting state and with the good SSAP */
678 /* Test if the socket is in Connecting state and if its SSAP number is the good one */
682 /* socket with the SN found */
685 /* Update the DSAP value with the incomming Socket sSap */
688 /* Store a pointer to the socket found */
693 /* Test if a socket has been found */
696 /* Set the socket state to connected */
716 /* No socket Active */
732 /* Search a socket in connected state and the good SSAP */
735 /* Test if the socket is in Connected state and if its SSAP number is the good one */
739 /* socket found */
742 /* Store a pointer to the socket found */
748 /* Test if a socket has been found */
751 /* Test if a send IFRAME is pending with this socket */
782 /* Update the socket state */
786 /* TODO: use a socket internal flag to save */
797 /* No socket Active */
834 /* Search a socket waiting for a DM (Disconnecting State) */
837 /* Test if the socket is in Disconnecting or connecting state and if its SSAP number is the good one */
842 /* socket found */
845 /* Store a pointer to the socket found */
851 /* Test if a socket has been found */
861 /* Set the socket state to disconnected */
879 /* Set the socket state to bound */
926 /* Search a socket waiting for an I FRAME (Connected State) */
929 /* Test if the socket is in connected state and if its SSAP and DSAP are valid */
935 /* socket found */
938 /* Store a pointer to the socket found */
944 /* Test if a socket has been found */
1038 /* Test if a send is pending with this socket */
1117 /* Test if a send is pending with this socket */
1154 /* No active socket*/
1180 /* Search a socket waiting for an RR FRAME (Connected State) */
1183 /* Test if the socket is in connected state and if its SSAP and DSAP are valid */
1188 /* socket found */
1191 /* Store a pointer to the socket found */
1198 /* Test if a socket has been found */
1272 /* No active socket*/
1298 /* Search a socket waiting for an RNR FRAME (Connected State) */
1301 /* Test if the socket is in connected state and if its SSAP and DSAP are valid */
1306 /* socket found */
1309 /* Store a pointer to the socket found */
1315 /* Test if a socket has been found */
1383 /* No active socket*/
1396 /* Search a socket waiting for a FRAME */
1399 /* Test if the socket is in connected state and if its SSAP and DSAP are valid */
1403 /* socket found */
1409 /* Test if a socket has been found */
1412 /* Set socket state to disconnected */
1418 /* Close the socket */
1423 /* No active socket*/
1516 * \brief <b>Get the local options of a socket</b>.
1519 * for a given connection-oriented socket. This function shall not be used with connectionless
1523 * \param[in] psLocalOptions A pointer to be filled with the local options of the socket.
1528 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
1550 * \brief <b>Get the local options of a socket</b>.
1553 * for a given connection-oriented socket. This function shall not be used with connectionless
1557 * \param[in] psRemoteOptions A pointer to be filled with the remote options of the socket.
1562 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
1585 * \brief <b>Listen for incoming connection requests on a socket</b>.
1587 * This function switches a socket into a listening state and registers a callback on
1588 * incoming connection requests. In this state, the socket is not able to communicate
1590 * which are still not connected. The socket keeps listening until it is closed, and
1596 * socket receive a connection request.
1603 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state to switch
1623 /* Set the socket state*/
1631 * \brief <b>Accept an incoming connection request for a socket</b>.
1634 * It must be used with the socket provided within the listen callback. The socket
1638 * \param[in] psOptions The options to be used with the socket.
1640 * \param[in] pErr_Cb The callback to be called each time the accepted socket
1665 /* Store the options in the socket */
1668 /* Set socket local params (MIUX & RW) */
1767 /* Set the socket state to accepted */
1799 * \brief <b>Reject an incoming connection request for a socket</b>.
1802 * It must be used with the socket provided within the listen callback. The socket
1818 /* Set the state of the socket */
1836 * \brief <b>Try to establish connection with a socket on a remote SAP</b>.
1839 * socket is not bound to a local SAP, it is implicitly bound to a free SAP.
1854 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
1884 /* Set the socket Header */
1959 /* Set the socket in connecting state */
1988 * \brief <b>Disconnect a currently connected socket</b>.
1990 * This function initiates the disconnection of a previously connected socket.
2003 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
2019 /* Set the socket in connecting state */
2022 /* Test if a send IFRAME is pending with this socket */
2062 /* Set the socket Header */
2094 /* Reset the pointer to the socket closed */
2131 * \brief <b>Close a socket on a LLCP-connected device</b>.
2133 * This function closes a LLCP socket previously created using phFriNfc_LlcpTransport_Socket.
2134 * If the socket was connected, it is first disconnected, and then closed.
2155 LLCP_PRINT("Socket not connected, no need to disconnect");
2156 /* Reset the pointer to the socket closed */
2193 * \brief <b>Send data on a socket</b>.
2195 * This function is used to write data on a socket. This function
2196 * can only be called on a connection-oriented socket which is already
2212 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
2282 * \brief <b>Read data on a socket</b>.
2284 * This function is used to read data from a socket. It reads at most the
2288 * can only be called on a connection-oriented socket.
2303 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of