GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GCOMM_DATAGRAM (3)

NAME

gcomm::Datagram - Datagram container.

CONTENTS

Synopsis

SYNOPSIS

#include <datagram.hpp>

    Public Member Functions

    Datagram (const gu::Buffer &buf, size_t offset=0)
Construct new datagram from byte buffer.     Datagram (const gu::SharedBuffer &buf, size_t offset=0)    
Datagram (const Datagram &dgram, size_t off=std::numeric_limits< size_t >::max())
Copy constructor.     ~Datagram ()
Destruct datagram.     void normalize ()    
gu::byte_t * header ()    
const gu::byte_t * header () const    
size_t header_size () const    
size_t header_len () const    
size_t header_offset () const    
void set_header_offset (const size_t off)    
const gu::Buffer & payload () const    
gu::Buffer & payload ()    
size_t len () const    
size_t offset () const

    Friends

    uint16_t crc16 (const Datagram &, size_t)    
uint32_t crc32 (NetHeader::checksum_t, const Datagram &, size_t)

Detailed Description

Datagram container.

Datagram class provides consistent interface for managing datagrams/byte buffers.

Constructor & Destructor Documentation

gcomm::Datagram::Datagram (const gu::Buffer & buf, size_t offset = 0) [inline]

Construct new datagram from byte buffer.

Parameters:

buf Const pointer to data buffer
buflen Length of data buffer

Exceptions:

std::bad_alloc

gcomm::Datagram::Datagram (const Datagram & dgram, size_t off = std::numeric_limits<size_t>::max()) [inline]

Copy constructor.

Note:

Only for normalized datagrams.

Parameters:

dgram Datagram to make copy from
off

Exceptions:

std::bad_alloc

Author

Generated automatically by Doxygen for GComm from the source code.

Search for    or go to Top of page |  Section 3 |  Main Index


Version 0.2.3 GCOMM::DATAGRAM (3) Sun Apr 3 2016

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.