coap_session_internal.h
Go to the documentation of this file.
/*
* coap_session_internal.h -- Structures, Enums & Functions that are not
* exposed to application programming
*
* Copyright (C) 2010-2019 Olaf Bergmann <bergmann@tzi.org>
*
* This file is part of the CoAP library libcoap. Please see README for terms
* of use.
*/
#ifndef COAP_SESSION_INTERNAL_H_
#define COAP_SESSION_INTERNAL_H_
struct coap_endpoint_t {
struct coap_endpoint_t *next;
struct coap_context_t *context;
coap_proto_t proto;
uint16_t default_mtu;
coap_socket_t sock;
coap_address_t bind_addr;
struct coap_session_t *sessions;
};
#endif /* COAP_SESSION_INTERNAL_H_ */
coap_proto_t
uint8_t coap_proto_t
Definition: pdu.h:337
coap_address_t
multi-purpose address abstraction
Definition: address.h:62
coap_context_t
The CoAP stack's global state is stored in a coap_context_t object.
Definition: net.h:147
coap_endpoint_t
Abstraction of virtual endpoint that can be attached to coap_context_t.
Definition: coap_session_internal.h:29
coap_endpoint_t::context
struct coap_context_t * context
endpoint's context
Definition: coap_session_internal.h:31
coap_endpoint_t::default_mtu
uint16_t default_mtu
default mtu for this interface
Definition: coap_session_internal.h:33
coap_endpoint_t::sessions
struct coap_session_t * sessions
hash table or list of active sessions
Definition: coap_session_internal.h:36
coap_endpoint_t::next
struct coap_endpoint_t * next
Definition: coap_session_internal.h:30
coap_endpoint_t::bind_addr
coap_address_t bind_addr
local interface address
Definition: coap_session_internal.h:35
coap_endpoint_t::sock
coap_socket_t sock
socket object for the interface, if any
Definition: coap_session_internal.h:34
coap_endpoint_t::proto
coap_proto_t proto
protocol used on this interface
Definition: coap_session_internal.h:32
coap_session_t
Definition: coap_session.h:59
coap_socket_t
Definition: coap_io.h:54