Rudiments

inetsocketserver.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_INETSOCKETSERVER_H
5 #define RUDIMENTS_INETSOCKETSERVER_H
6
7 #include <rudiments/private/inetsocketserverincludes.h>
8
19 class RUDIMENTS_DLLSPEC inetsocketserver : public socketserver, private inetsocketutil {
20 public:
21
23 inetsocketserver();
24
27 inetsocketserver(const inetsocketserver &i);
28
31 inetsocketserver &operator=(const inetsocketserver &i);
32
34 virtual ~inetsocketserver();
35
55 bool listen(const char *address,
56 uint16_t port,
57 int32_t backlog);
58
59
60
65 bool initialize(const char *address, uint16_t port);
66
70 bool bind();
71
77 bool listen(int32_t backlog);
78
84 filedescriptor *accept();
85
90 uint16_t getPort();
91
92 #include <rudiments/private/inetsocketserver.h>
93 };
94
95 #endif
filedescriptor
Definition: filedescriptor.h:13
inetsocketserver
Definition: inetsocketserver.h:19
inetsocketserver::listen
bool listen(int32_t backlog)
inetsocketserver::inetsocketserver
inetsocketserver(const inetsocketserver &i)
inetsocketserver::inetsocketserver
inetsocketserver()
inetsocketserver::~inetsocketserver
virtual ~inetsocketserver()
inetsocketserver::listen
bool listen(const char *address, uint16_t port, int32_t backlog)
inetsocketserver::bind
bool bind()
inetsocketserver::initialize
bool initialize(const char *address, uint16_t port)
inetsocketserver::operator=
inetsocketserver & operator=(const inetsocketserver &i)
inetsocketserver::accept
filedescriptor * accept()
inetsocketserver::getPort
uint16_t getPort()
inetsocketutil
Definition: inetsocketutil.h:11
socketserver
Definition: socketserver.h:11