Rudiments

modemserver.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_MODEMSERVER_H
5 #define RUDIMENTS_MODEMSERVER_H
6
7 #include <rudiments/private/modemserverincludes.h>
8
19 class RUDIMENTS_DLLSPEC modemserver : public server, private modemutil {
20 public:
21
23 modemserver();
24
27 modemserver(const modemserver &m);
28
31 modemserver &operator=(const modemserver &m);
32
34 virtual ~modemserver();
35
47 bool listen(const char *device, const char *baud,
48 const char *listenscript,
49 const char *acceptscript,
50 const char *disconnectscript);
51
58 void initialize(const char *device, const char *baud,
59 const char *listenscript,
60 const char *acceptscript,
61 const char *disconnectscript);
62
67 bool listen(int32_t backlog);
68
74 filedescriptor *accept();
75
80 bool close();
81
82 #include <rudiments/private/modemserver.h>
83 };
84
85 #endif
device
Definition: device.h:16
filedescriptor
Definition: filedescriptor.h:13
modemserver
Definition: modemserver.h:19
modemserver::accept
filedescriptor * accept()
modemserver::modemserver
modemserver()
modemserver::close
bool close()
modemserver::modemserver
modemserver(const modemserver &m)
modemserver::listen
bool listen(const char *device, const char *baud, const char *listenscript, const char *acceptscript, const char *disconnectscript)
modemserver::~modemserver
virtual ~modemserver()
modemserver::operator=
modemserver & operator=(const modemserver &m)
modemserver::listen
bool listen(int32_t backlog)
modemserver::initialize
void initialize(const char *device, const char *baud, const char *listenscript, const char *acceptscript, const char *disconnectscript)
modemutil
Definition: modemutil.h:11
server
Definition: server.h:11