|
libe3 0.6.1
C++ library for E3AP RAN vendor integration
|
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. | |
One accepted connection of a RAN. Closes its socket when the last reference goes.
Definition at line 351 of file posix_connector.cpp.
|
inline |
Take over an accepted connection.
| f | The connected socket, which this object closes |
| t | The token that names the connection |
Definition at line 363 of file posix_connector.cpp.
|
inline |
Close the socket.
Definition at line 366 of file posix_connector.cpp.
| int libe3::PosixE3Connector::Peer::fd |
The connection.
Definition at line 352 of file posix_connector.cpp.
| 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.
| 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.
| uint64_t libe3::PosixE3Connector::Peer::token |
Never reused by this connector.
Definition at line 353 of file posix_connector.cpp.
| std::mutex libe3::PosixE3Connector::Peer::write_mutex |
One writer at a time.
Definition at line 356 of file posix_connector.cpp.