anjay
|
#include <core.h>
Data Fields | |
avs_net_socket_t * | socket |
anjay_socket_transport_t | transport |
anjay_ssid_t | ssid |
bool | queue_mode |
A structure that describes an open socket used by Anjay. Returned by anjay_get_socket_entries.
bool queue_mode |
Flag that is true in the following cases:
In either case, a queue mode socket will stop being returned from anjay_get_sockets and anjay_get_socket_entries after period defined by CoAP MAX_TRANSMIT_WAIT
since last communication.
avs_net_socket_t* socket |
The socket described by this structure. It is intended to be used directly only for checking whether there is data ready, using mechanisms such as select()
or poll()
.
anjay_ssid_t ssid |
SSID of the server to which the socket is related. May be:
ANJAY_SSID_ANY
if the socket is not directly and unambiguously related to any server, which includes:ANJAY_SSID_BOOTSTRAP
for the Bootstrap Server socketanjay_socket_transport_t transport |
Transport layer used by socket
.
Guaranteed to not be ANJAY_SOCKET_TRANSPORT_INVALID, that value is only used internally.