join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
RawSocket Class Reference

Class used to test the raw socket API. More...

Inheritance diagram for RawSocket:
Collaboration diagram for RawSocket:

Static Public Member Functions

static void SetUpTestCase ()
 set up test case.
 

Protected Member Functions

void SetUp () override
 Sets up the test fixture.
 
void TearDown () override
 Tears down the test fixture.
 
virtual void onReceive () override
 method called when data are ready to be read on handle.
 
struct __attribute__ ((packed)) Packet
 Raw packet.
 

Static Protected Attributes

static Packet _packet
 packet.
 
static const std::string _interface = "lo"
 hostname.
 
static const int _timeout = 1000
 timeout.
 

Detailed Description

Class used to test the raw socket API.

Member Function Documentation

◆ __attribute__()

struct RawSocket::__attribute__ ( (packed) )
inlineprotected

Raw packet.

◆ onReceive()

virtual void RawSocket::onReceive ( )
inlineoverrideprotectedvirtual

method called when data are ready to be read on handle.

◆ SetUp()

void RawSocket::SetUp ( )
inlineoverrideprotected

Sets up the test fixture.

◆ SetUpTestCase()

static void RawSocket::SetUpTestCase ( )
inlinestatic

set up test case.

◆ TearDown()

void RawSocket::TearDown ( )
inlineoverrideprotected

Tears down the test fixture.

Member Data Documentation

◆ _interface

const std::string RawSocket::_interface = "lo"
staticprotected

hostname.

◆ _packet

RawSocket::Packet RawSocket::_packet
staticprotected

packet.

◆ _timeout

const int RawSocket::_timeout = 1000
staticprotected

timeout.


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