Whisper Library
 All Classes Functions Variables Typedefs Enumerations Friends
whisper_library::GenericPacket Class Reference

Represents a network packet. More...

Inheritance diagram for whisper_library::GenericPacket:
Inheritance graph

Public Member Functions

 GenericPacket ()
 Creates a GenericPacket.
 
 GenericPacket (vector< bool > content)
 Creates a GenericPacket with the given content. More...
 
void setPacket (vector< bool > content)
 Sets the content of the packet. More...
 
vector< bool > packet () const
 

Private Attributes

vector< bool > m_content
 holds the packets content
 

Detailed Description

Represents a network packet.

Constructor & Destructor Documentation

whisper_library::GenericPacket::GenericPacket ( vector< bool >  content)
inline

Creates a GenericPacket with the given content.

Parameters
contentThe bits used to fill the packet

Member Function Documentation

vector< bool > whisper_library::GenericPacket::packet ( ) const
Returns
the packets content
void whisper_library::GenericPacket::setPacket ( vector< bool >  content)

Sets the content of the packet.

Parameters
contentThe new content