odtone::net::ip::checksum
// In header: </home/carlos/Projectos/odtone/inc/odtone/net/ip/checksum.hpp> class checksum { public: // construct/copy/destruct checksum(); // public member functions void update(const void *, size_t); void update(const uint16 *, size_t); uint16 final() const; void clear(); };
This class represents the checksum field in IP packets.
checksum
public member functionsvoid update(const void * data, size_t len);
Update the checksum value based on the byte buffer.
Parameters: |
|
void update(const uint16 * data, size_t len);
Update the checksum value based on the byte buffer.
Parameters: |
|
uint16 final() const;
Get the value of the checksum.
Returns: |
The value of the checksum. |
void clear();
Clear the value of the checksum.