libutil++
1.9.3
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
src
sella
util
Packet.h
1
/*
2
** libutil++
3
** $Id: Packet.h 1653 2016-02-28 19:54:59Z sella $
4
** Copyright (c) 2011-2016 Digital Genesis, LLC. All Rights Reserved.
5
** Released under the LGPL Version 2.1 License.
6
** http://www.digitalgenesis.com
7
*/
8
9
#ifndef __libutilxx__sella__util__Packet_H__
10
#define __libutilxx__sella__util__Packet_H__
11
12
#include "../../common.h"
13
14
namespace
sella {
15
namespace
util {
16
class
Packet;
17
}
18
}
19
20
class
sella::util::Packet
{
21
public
:
/* Checksum calculations are byte order independant and do not require htons(). See RFC1071 */
22
static
uint8_t csum(uint8_t *buf,
int
bytes)
throw
();
23
static
uint16_t csum(uint16_t *buf,
int
words)
throw
();
/* 16bit words, not bytes */
24
};
25
26
#endif
27
28
/*
29
** vim: noet ts=3 sw=3
30
*/
sella::util::Packet
Definition:
Packet.h:20
Generated on Sat Sep 2 2017 11:44:22 for libutil++ by
1.8.5