Lines Matching full:socket

2  * @brief Modem socket header file.
4 * Generic modem socket and packet size implementation for modem context
18 #include <zephyr/net/socket.h>
33 /** The number identifying the socket handle inside the modem */
36 /** The file descriptor identifying the socket in the fdtable */
48 /** socket state */
52 /** temporary socket data */
60 /* beginning socket id (modems can set this to 0 or 1 as needed) */
63 /* dynamically assign id when modem socket is allocated */
91 * @brief Initialize modem socket config struct and associated modem sockets
94 * @param sockets The array of sockets associated with the modem socket config
95 * @param sockets_len The length of the array of sockets associated with the modem socket config
96 * @param base_socket_id The lowest socket id supported by the modem
97 * @param assign_id Dynamically assign modem socket id when allocated using modem_socket_get()
98 * @param vtable Socket API implementation used by this config and associated sockets
108 * @brief Check if modem socket has been allocated
110 * @details A modem socket is allocated after a successful invocation of modem_socket_get, and
113 * @note If socket id is automatically assigned, the socket id will be a value between
115 * Otherwise, the socket id will be assigned to (base_socket_id + socket_len) when allocated.
117 * @param cfg The modem socket config which the modem socket belongs to
118 * @param sock The modem socket which is checked
120 * @return true if the socket has been allocated
121 * @return false if the socket has not been allocated
127 * @brief Check if modem socket id has been assigned
129 * @note An assigned modem socket will have an id between base_socket_id and
132 * @param cfg The modem socket config which the modem socket belongs to
133 * @param sock The modem socket for which the id is checked
135 * @return true if the socket id is been assigned
136 * @return false if the socket has not been assigned
142 * @brief Assign id to modem socket
144 * @param cfg The modem socket config which the modem socket belongs to
145 * @param sock The modem socket for which the id will be assigned
146 * @param id The id to assign to the modem socket