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
19class RUDIMENTS_DLLSPEC modemserver : public server, public modemutil {
20 public:
21
24
26 virtual ~modemserver();
27
38 bool listen(const char *device, const char *baud,
39 const char *listenscript,
40 const char *acceptscript,
41 const char *disconnectscript);
42
49 void open(const char *device, const char *baud,
50 const char *listenscript,
51 const char *acceptscript,
52 const char *disconnectscript);
53
58 bool listen();
59
66
71 bool close();
72
73 #include <rudiments/private/modemserver.h>
74};
75
76#endif
Definition device.h:16
Definition filedescriptor.h:13
Definition modemserver.h:19
filedescriptor * accept()
bool close()
bool listen(const char *device, const char *baud, const char *listenscript, const char *acceptscript, const char *disconnectscript)
bool listen()
virtual ~modemserver()
void open(const char *device, const char *baud, const char *listenscript, const char *acceptscript, const char *disconnectscript)
Definition modemutil.h:11
Definition server.h:11