Rudiments: /home/dmuse/src/rudiments/include/rudiments/modemserver.h Source File

Rudiments

- Main Page
- Classes

modemserver.h
1 // Copyright (c) 2004 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
9 class modemserverprivate;
10
21 class RUDIMENTS_DLLSPEC modemserver : public server, private modemutil {
22 public:
23
25 modemserver();
26
29 modemserver(const modemserver &m);
30
33 modemserver &operator=(const modemserver &m);
34
36 virtual ~modemserver();
37
49 bool listen(const char *device, const char *baud,
50 const char *listenscript,
51 const char *acceptscript,
52 const char *disconnectscript);
53
60 void initialize(const char *device, const char *baud,
61 const char *listenscript,
62 const char *acceptscript,
63 const char *disconnectscript);
64
69 bool listen(int32_t backlog);
70
76 filedescriptor *accept();
77
82 bool close();
83
84 #include <rudiments/private/modemserver.h>
85 };
86
87 #endif
server::listen
virtual bool listen(int32_t backlog)
server::accept
virtual filedescriptor * accept()
server::operator=
server & operator=(const server &s)
server
Definition: server.h:13
device
Definition: device.h:18
modemutil
Definition: modemutil.h:11
filedescriptor
Definition: filedescriptor.h:14
filedescriptor::close
virtual bool close()
modemserver
Definition: modemserver.h:21