libutil++
1.9.3
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
src
sella
net
UDPPort.h
1
/*
2
** libutil++
3
** $Id: UDPPort.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__net__UDPPort_H__
10
#define __libutilxx__sella__net__UDPPort_H__
11
12
#include "../../common.h"
13
#include "Port.h"
14
#include "PortException.h"
15
16
#include <sys/socket.h>
17
#include <stdint.h>
18
19
#include <string>
20
21
namespace
sella {
22
namespace
net {
23
class
UDPPort;
24
}
25
}
26
27
class
sella::net::UDPPort
:
public
Port
{
28
public
:
29
typedef
std::shared_ptr<UDPPort> shared;
30
typedef
UDPPort
*
ptr
;
31
32
public
:
33
UDPPort
(
const
std::string &service)
throw
(PortException);
34
UDPPort
(uint16_t port = 0)
throw
(PortException);
35
36
UDPPort
(
const
UDPPort
&other)
throw
();
37
UDPPort
(
const
UDPPort
&&other)
throw
();
38
virtual
~
UDPPort
()
throw
();
39
40
static
const
UDPPort::shared shared_ptr(
const
std::string &service)
throw
(PortException);
41
static
const
UDPPort::shared shared_ptr(uint16_t port = 0)
throw
(PortException);
42
};
43
44
#endif
45
46
/*
47
** vim: noet ts=3 sw=3
48
*/
sella::net::Port
Definition:
Port.h:31
sella::net::UDPPort
Definition:
UDPPort.h:27
Generated on Sat Sep 2 2017 11:44:21 for libutil++ by
1.8.5