libe3 0.6.1
C++ library for E3AP RAN vendor integration
Loading...
Searching...
No Matches
libe3::PosixE3Connector::Peer Struct Reference

One accepted connection of a RAN. Closes its socket when the last reference goes. More...

Public Member Functions

 Peer (int f, uint64_t t)
 Take over an accepted connection.
 ~Peer ()
 Close the socket.

Public Attributes

int fd
 The connection.
uint64_t token
 Never reused by this connector.
std::vector< uint8_t > rx
 Bytes read and not yet a whole PDU; the reader's alone.
bool seen_first {false}
 The first PDU, the setup request, was read; the reader's alone.
std::mutex write_mutex
 One writer at a time.

Detailed Description

One accepted connection of a RAN. Closes its socket when the last reference goes.

Definition at line 351 of file posix_connector.cpp.

Constructor & Destructor Documentation

◆ Peer()

libe3::PosixE3Connector::Peer::Peer ( int f,
uint64_t t )
inline

Take over an accepted connection.

Parameters
fThe connected socket, which this object closes
tThe token that names the connection

Definition at line 363 of file posix_connector.cpp.

◆ ~Peer()

libe3::PosixE3Connector::Peer::~Peer ( )
inline

Close the socket.

Definition at line 366 of file posix_connector.cpp.

Member Data Documentation

◆ fd

int libe3::PosixE3Connector::Peer::fd

The connection.

Definition at line 352 of file posix_connector.cpp.

◆ rx

std::vector<uint8_t> libe3::PosixE3Connector::Peer::rx

Bytes read and not yet a whole PDU; the reader's alone.

Definition at line 354 of file posix_connector.cpp.

◆ seen_first

bool libe3::PosixE3Connector::Peer::seen_first {false}

The first PDU, the setup request, was read; the reader's alone.

Definition at line 355 of file posix_connector.cpp.

◆ token

uint64_t libe3::PosixE3Connector::Peer::token

Never reused by this connector.

Definition at line 353 of file posix_connector.cpp.

◆ write_mutex

std::mutex libe3::PosixE3Connector::Peer::write_mutex

One writer at a time.

Definition at line 356 of file posix_connector.cpp.


The documentation for this struct was generated from the following file: