roo_transport
API Documentation for roo_transport
Loading...
Searching...
No Matches
roo_transport::internal Namespace Reference

Data Structures

class  InBuffer
 
class  OutBuffer
 
class  Receiver
 
class  RingBuffer
 
class  SeqNum
 
class  Transmitter
 

Enumerations

enum  PacketType {
  kDataPacket = 0 , kFinPacket = 1 , kDataAckPacket = 2 , kHandshakePacket = 3 ,
  kFlowControlPacket = 4
}
 

Functions

bool GetPacketControlBit (uint16_t header)
 
PacketType GetPacketType (uint16_t header)
 
uint16_t FormatPacketHeader (SeqNum seq, PacketType type, bool control_bit)
 
void SetPacketHeaderTypeFin (uint16_t &header)
 

Enumeration Type Documentation

◆ PacketType

Enumerator
kDataPacket 
kFinPacket 
kDataAckPacket 
kHandshakePacket 
kFlowControlPacket 

Definition at line 103 of file protocol.h.

Function Documentation

◆ FormatPacketHeader()

uint16_t roo_transport::internal::FormatPacketHeader ( SeqNum  seq,
PacketType  type,
bool  control_bit 
)
inline

◆ GetPacketControlBit()

bool roo_transport::internal::GetPacketControlBit ( uint16_t  header)
inline

Definition at line 111 of file protocol.h.

◆ GetPacketType()

PacketType roo_transport::internal::GetPacketType ( uint16_t  header)
inline

Definition at line 115 of file protocol.h.

◆ SetPacketHeaderTypeFin()

void roo_transport::internal::SetPacketHeaderTypeFin ( uint16_t header)
inline

Definition at line 126 of file protocol.h.

Referenced by roo_transport::internal::OutBuffer::markFinal().