#include <Datagram.h>
Public Member Functions | |
unsigned int | blength () |
const unsigned char * | data () const |
unsigned char * | data () |
const RawDatagram & | operator= (const RawDatagram &dgm) |
RawDatagram () | |
RawDatagram (const RawDatagram &dgm) | |
bool | read (FILE *fp) |
bool | read (const std::vector< unsigned char > &s) |
bool | read (const unsigned char *s, unsigned int len) |
bool | receive (Socket *sock, unsigned int timeout=1000, bool verbose=false) |
void | reset () |
void | resize (unsigned int len) |
bool | send (Socket *sock) |
bool | write (FILE *fp) const |
~RawDatagram () | |
Protected Attributes | |
unsigned int | _blength |
unsigned char * | _data |
Definition at line 8 of file Datagram.h.
Definition at line 8 of file Datagram.cpp.
RawDatagram::RawDatagram | ( | const RawDatagram & | dgm | ) |
Definition at line 16 of file Datagram.cpp.
Definition at line 34 of file Datagram.cpp.
unsigned int RawDatagram::blength | ( | ) | [inline] |
Definition at line 30 of file Datagram.h.
const unsigned char* RawDatagram::data | ( | ) | const [inline] |
Definition at line 31 of file Datagram.h.
unsigned char* RawDatagram::data | ( | ) | [inline] |
Definition at line 32 of file Datagram.h.
const RawDatagram & RawDatagram::operator= | ( | const RawDatagram & | dgm | ) |
Definition at line 24 of file Datagram.cpp.
bool RawDatagram::read | ( | FILE * | fp | ) |
Definition at line 54 of file Datagram.cpp.
bool RawDatagram::read | ( | const std::vector< unsigned char > & | s | ) |
Definition at line 73 of file Datagram.cpp.
bool RawDatagram::read | ( | const unsigned char * | s, |
unsigned int | len | ||
) |
Definition at line 93 of file Datagram.cpp.
bool RawDatagram::receive | ( | Socket * | sock, |
unsigned int | timeout = 1000 , |
||
bool | verbose = false |
||
) |
Definition at line 123 of file Datagram.cpp.
void RawDatagram::reset | ( | ) |
Definition at line 39 of file Datagram.cpp.
void RawDatagram::resize | ( | unsigned int | len | ) |
Definition at line 44 of file Datagram.cpp.
bool RawDatagram::send | ( | Socket * | sock | ) |
Definition at line 145 of file Datagram.cpp.
bool RawDatagram::write | ( | FILE * | fp | ) | const |
Definition at line 111 of file Datagram.cpp.
unsigned int RawDatagram::_blength [protected] |
Definition at line 11 of file Datagram.h.
unsigned char* RawDatagram::_data [protected] |
Definition at line 12 of file Datagram.h.