Home | History | Annotate | Download | only in src

Lines Matching full:socket

78 * \brief LLCP socket error notification callback definition
87 * \brief LLCP socket listen callback definition
95 * \brief LLCP socket connect callback definition
104 * \brief LLCP socket disconnect callback definition
112 * \brief LLCP socket accept callback definition
120 * \brief LLCP socket reject callback definition
128 * \brief LLCP socket reception callback definition
136 * \brief LLCP socket reception with SSAP callback definition
145 * \brief LLCP socket emission callback definition
154 * \brief Declaration of a SOCKET type
163 /* Remote and local socket info */
221 /* Pointer a the socket table */
307 * \brief <b>Create a socket on a LLCP-connected device</b>.
340 * This function is only used when the DM is not related to a DISC on a socket.
379 * \brief <b>Get the local options of a socket</b>.
382 * for a given connection-oriented socket. This function shall not be used with connectionless
386 * \param[in] psLocalOptions A pointer to be filled with the local options of the socket.
391 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
403 * \brief <b>Get the local options of a socket</b>.
406 * for a given connection-oriented socket. This function shall not be used with connectionless
410 * \param[in] psRemoteOptions A pointer to be filled with the remote options of the socket.
415 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
427 * \brief <b>Create a socket on a LLCP-connected device</b>.
429 * This function creates a socket for a given LLCP link. Sockets can be of two types :
430 * connection-oriented and connectionless. If the socket is connection-oriented, the caller
431 * must provide a working buffer to the socket in order to handle incoming data. This buffer
435 * The options and working buffer are not required if the socket is used as a listening socket,
439 * \param[in] eType The socket type.
440 * \param[in] psOptions The options to be used with the socket.
442 * \param[out] pLlcpSocket A pointer to a socket pointer to be filled with a
443 socket found on the socket table.
444 * \param[in] pErr_Cb The callback to be called each time the socket
453 * \retval NFCSTATUS_INSUFFICIENT_RESOURCES No more socket handle available.
466 * \brief <b>Close a socket on a LLCP-connected device</b>.
468 * This function closes a LLCP socket previously created using phFriNfc_LlcpTransport_Socket.
469 * If the socket was connected, it is first disconnected, and then closed.
483 * \brief <b>Bind a socket to a local SAP</b>.
485 * This function binds the socket to a local Service Access Point.
488 * \param[in] pConfigInfo A port number for a specific socket
494 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
497 socket.
506 * \brief <b>Listen for incoming connection requests on a socket</b>.
508 * This function switches a socket into a listening state and registers a callback on
509 * incoming connection requests. In this state, the socket is not able to communicate
511 * which are still not connected. The socket keeps listening until it is closed, and
517 * socket receive a connection request.
524 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state to switch
534 * \brief <b>Accept an incoming connection request for a socket</b>.
537 * It must be used with the socket provided within the listen callback. The socket
541 * \param[in] psOptions The options to be used with the socket.
543 * \param[in] pErr_Cb The callback to be called each time the accepted socket
564 * \brief <b>Reject an incoming connection request for a socket</b>.
567 * It must be used with the socket provided within the listen callback. The socket
584 * \brief <b>Try to establish connection with a socket on a remote SAP</b>.
587 * socket is not bound to a local SAP, it is implicitly bound to a free SAP.
601 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
612 * \brief <b>Try to establish connection with a socket on a remote service, given its URI</b>.
615 * socket is not bound to a local SAP, it is implicitly bound to a free SAP.
629 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
642 * \brief <b>Disconnect a currently connected socket</b>.
644 * This function initiates the disconnection of a previously connected socket.
657 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
669 * \brief <b>Send data on a socket</b>.
671 * This function is used to write data on a socket. This function
672 * can only be called on a connection-oriented socket which is already
676 * \param[in] hSocket Socket handle obtained during socket creation.
688 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
699 * \brief <b>Read data on a socket</b>.
701 * This function is used to read data from a socket. It reads at most the
705 * can only be called on a connection-oriented socket.
708 * \param[in] hSocket Socket handle obtained during socket creation.
720 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
733 * \brief <b>Read data on a socket and get the source SAP</b>.
736 * the source SAP. This functions can only be called on a connectionless socket.
751 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
764 * \brief <b>Send data on a socket to a given destination SAP</b>.
766 * This function is used to write data on a socket to a given destination SAP.
767 * This function can only be called on a connectionless socket.
783 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of