roo_transport
API Documentation for roo_transport
Loading...
Searching...
No Matches
roo_transport::LinkTransport Class Reference

#include <link_transport.h>

Data Structures

class  StatsMonitor
 

Public Member Functions

 LinkTransport (PacketSender &sender, LinkBufferSize sendbuf=kBufferSize4KB, LinkBufferSize recvbuf=kBufferSize4KB)
 
 LinkTransport (PacketSender &sender, roo::string_view name, LinkBufferSize sendbuf=kBufferSize4KB, LinkBufferSize recvbuf=kBufferSize4KB)
 
void begin ()
 
void end ()
 
void processIncomingPacket (const roo::byte *buf, size_t len)
 
Link connect (std::function< void()> disconnect_fn=nullptr)
 
Link connectAsync (std::function< void()> disconnect_fn=nullptr)
 
Link connectOrDie ()
 

Friends

class StatsMonitor
 

Detailed Description

Definition at line 12 of file link_transport.h.

Constructor & Destructor Documentation

◆ LinkTransport() [1/2]

roo_transport::LinkTransport::LinkTransport ( PacketSender sender,
LinkBufferSize  sendbuf = kBufferSize4KB,
LinkBufferSize  recvbuf = kBufferSize4KB 
)

Definition at line 5 of file link_transport.cpp.

◆ LinkTransport() [2/2]

roo_transport::LinkTransport::LinkTransport ( PacketSender sender,
roo::string_view  name,
LinkBufferSize  sendbuf = kBufferSize4KB,
LinkBufferSize  recvbuf = kBufferSize4KB 
)

Definition at line 9 of file link_transport.cpp.

Member Function Documentation

◆ begin()

void roo_transport::LinkTransport::begin ( )
inline

Definition at line 24 of file link_transport.h.

◆ connect()

Link roo_transport::LinkTransport::connect ( std::function< void()>  disconnect_fn = nullptr)

Definition at line 22 of file link_transport.cpp.

References roo_transport::Link::awaitConnected(), and connectAsync().

Referenced by connectOrDie().

◆ connectAsync()

Link roo_transport::LinkTransport::connectAsync ( std::function< void()>  disconnect_fn = nullptr)

Definition at line 17 of file link_transport.cpp.

Referenced by connect().

◆ connectOrDie()

Link roo_transport::LinkTransport::connectOrDie ( )
inline

Definition at line 46 of file link_transport.h.

References connect().

◆ end()

void roo_transport::LinkTransport::end ( )
inline

Definition at line 26 of file link_transport.h.

◆ processIncomingPacket()

void roo_transport::LinkTransport::processIncomingPacket ( const roo::byte *  buf,
size_t  len 
)

Definition at line 13 of file link_transport.cpp.

Friends And Related Symbol Documentation

◆ StatsMonitor

Definition at line 52 of file link_transport.h.


The documentation for this class was generated from the following files: