SENF Extensible Network Framework
Home
Overview
Examples
HowTos
Glossary
Ext
NetEmu
PPI
Packets
Scheduler
Socket
Utils
Console
Daemon
Logger
Termlib
FramingPolicy.hh
Go to the documentation of this file.
1
//
2
// Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3
// Network Research Group (NET)
4
// Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5
// Contact: support@wiback.org
6
//
7
// This file is part of the SENF code tree.
8
// It is licensed under the 3-clause BSD License (aka New BSD License).
9
// See LICENSE.txt in the top level directory for details or visit
10
// https://opensource.org/licenses/BSD-3-Clause
11
//
12
13
18
#ifndef HH_SENF_Socket_FramingPolicy_
19
#define HH_SENF_Socket_FramingPolicy_ 1
20
21
// Custom includes
22
#include "
SocketPolicy.hh
"
23
24
//#include "FramingPolicy.mpp"
25
//-/////////////////////////////////////////////////////////////////////////////////////////////////
26
27
namespace
senf
{
28
30
//\{
31
40
struct
StreamFramingPolicy
:
public
FramingPolicyBase
41
{};
42
51
struct
DatagramFramingPolicy
:
public
FramingPolicyBase
52
{};
53
54
//\}
55
56
}
57
58
//-/////////////////////////////////////////////////////////////////////////////////////////////////
59
//#include "FramingPolicy.cci"
60
//#include "FramingPolicy.ct"
61
//#include "FramingPolicy.cti"
62
#endif
63
64
65
// Local Variables:
66
// mode: c++
67
// fill-column: 100
68
// c-file-style: "senf"
69
// indent-tabs-mode: nil
70
// ispell-local-dictionary: "american"
71
// compile-command: "scons -u test"
72
// comment-column: 40
73
// End:
SocketPolicy.hh
Policy Framework public header.
senf::StreamFramingPolicy
FramingPolicy for stream oriented sockets.
Definition:
FramingPolicy.hh:40
senf
Definition:
AddressingPolicy.hh:27
senf::DatagramFramingPolicy
FramingPolicy for datagram oriented sockets.
Definition:
FramingPolicy.hh:51
senf::FramingPolicyBase
Policy defining the framing format.
Definition:
SocketPolicy.hh:291