[−][src]Struct libcoap_sys::coap_session_t
Fields
proto: coap_proto_t
< protocol used
type_: coap_session_type_t
< client or server side socket
state: coap_session_state_t
< current state of relationaship with peer
ref_: c_uint
< reference count from queues
tls_overhead: c_uint
< overhead of TLS layer
mtu: c_uint
< path or CSM mtu
local_if: coap_address_t
< optional local interface address
hh: UT_hash_handle
addr_info: coap_addr_tuple_t
< key: remote/local address info
ifindex: c_int
< interface index
sock: coap_socket_t
< socket object for the session, if any
endpoint: *mut coap_endpoint_t
< session's endpoint
context: *mut coap_context_t
< session's context
tls: *mut c_void
< security parameters
tx_mid: u16
< the last message id that was used in this session
con_active: u8
< Active CON request sent
last_ping_mid: coap_tid_t
< the last keepalive message id that was used in this session
delayqueue: *mut coap_queue_t
< list of delayed messages waiting to be sent
partial_write: usize
< if > 0 indicates number of bytes already written from the pdu at the head of sendqueue
read_header: [u8; 8]
< storage space for header of incoming message header
partial_read: usize
< if > 0 indicates number of bytes already read for an incoming message
partial_pdu: *mut coap_pdu_t
< incomplete incoming pdu
last_rx_tx: coap_tick_t
last_tx_rst: coap_tick_t
last_ping: coap_tick_t
last_pong: coap_tick_t
csm_tx: coap_tick_t
psk_identity: *mut u8
psk_identity_len: usize
psk_key: *mut u8
psk_key_len: usize
app: *mut c_void
< application-specific data
max_retransmit: c_uint
< maximum re-transmit count (default 4)
ack_timeout: coap_fixed_point_t
< timeout waiting for ack (default 2 secs)
ack_random_factor: coap_fixed_point_t
< ack random factor backoff (default 1.5)
dtls_timeout_count: c_uint
< dtls setup retry counter
dtls_event: c_int
< Tracking any (D)TLS events on this sesison
Trait Implementations
impl Clone for coap_session_t
[src]
fn clone(&self) -> coap_session_t
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for coap_session_t
[src]
Auto Trait Implementations
impl RefUnwindSafe for coap_session_t
impl !Send for coap_session_t
impl !Sync for coap_session_t
impl Unpin for coap_session_t
impl UnwindSafe for coap_session_t
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,