forked from pocoproject/poco
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatagramSocketImpl.h
More file actions
executable file
·61 lines (45 loc) · 1.22 KB
/
DatagramSocketImpl.h
File metadata and controls
executable file
·61 lines (45 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// DatagramSocketImpl.h
//
// $Id: //poco/1.4/Net/include/Poco/Net/DatagramSocketImpl.h#1 $
//
// Library: Net
// Package: Sockets
// Module: DatagramSocketImpl
//
// Definition of the DatagramSocketImpl class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_DatagramSocketImpl_INCLUDED
#define Net_DatagramSocketImpl_INCLUDED
#include "Poco/Net/Net.h"
#include "Poco/Net/SocketImpl.h"
namespace Poco {
namespace Net {
class Net_API DatagramSocketImpl: public SocketImpl
/// This class implements an UDP socket.
{
public:
DatagramSocketImpl();
/// Creates a DatagramSocketImpl.
///
/// If the system supports IPv6, the socket will
/// be an IPv6 socket. Otherwise, it will be
/// an IPv4 socket.
explicit DatagramSocketImpl(IPAddress::Family family);
/// Creates an unconnected datagram socket.
///
/// The socket will be created for the
/// given address family.
DatagramSocketImpl(poco_socket_t sockfd);
/// Creates a StreamSocketImpl using the given native socket.
protected:
void init(int af);
~DatagramSocketImpl();
};
} } // namespace Poco::Net
#endif // Net_DatagramSocketImpl_INCLUDED