Public Member Functions | Protected Attributes
RawDatagram Class Reference

#include <Datagram.h>

Inheritance diagram for RawDatagram:
Inheritance graph
[legend]

List of all members.

Public Member Functions

unsigned int blength ()
const unsigned char * data () const
unsigned char * data ()
const RawDatagramoperator= (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

Detailed Description

Definition at line 8 of file Datagram.h.


Constructor & Destructor Documentation

Definition at line 8 of file Datagram.cpp.

Definition at line 16 of file Datagram.cpp.

Definition at line 34 of file Datagram.cpp.


Member Function Documentation

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.

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.


Member Data Documentation

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.


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


canon_vbc50i
Author(s): Cedric Pradalier
autogenerated on Sun Oct 5 2014 23:47:45