otBorderAgentSessionInfo

#include <border_agent.h>

Represents information about a Border Agent session.

Summary

This structure is populated by otBorderAgentGetNextSessionInfo() during iteration over the list of sessions using an otBorderAgentSessionIterator.

To ensure consistent mLifetime calculations, the iterator's initialization time is stored within the iterator, and each session's mLifetime is calculated relative to this time.

Public attributes

mIsCommissioner
bool
Indicates whether the session is accepted as full commissioner.
mIsConnected
bool
Indicates whether the session is connected.
mLifetime
uint64_t
Milliseconds since the session was first established.
mPeerSockAddr
Socket address (IPv6 address and port number) of session peer.

Public attributes

mIsCommissioner

bool otBorderAgentSessionInfo::mIsCommissioner

Indicates whether the session is accepted as full commissioner.

mIsConnected

bool otBorderAgentSessionInfo::mIsConnected

Indicates whether the session is connected.

mLifetime

uint64_t otBorderAgentSessionInfo::mLifetime

Milliseconds since the session was first established.

mPeerSockAddr

otSockAddr otBorderAgentSessionInfo::mPeerSockAddr

Socket address (IPv6 address and port number) of session peer.

Resources

OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.