Rudiments: /home/dmuse/temp/rudiments/include/rudiments/chat.h Source File

Rudiments

chat.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_CHAT_H
5 #define RUDIMENTS_CHAT_H
6
7 #include <rudiments/private/chatincludes.h>
8
11 class RUDIMENTS_DLLSPEC chat {
12 public:
14 chat();
15
18 chat(filedescriptor *fd);
19
22 chat(filedescriptor *rfd, filedescriptor *wfd);
23
25 ~chat();
26
27 /* Sets the read file descriptor to "rfd". */
28 void setReadFileDescriptor(filedescriptor *rfd);
29
30 /* Sets the write file descriptor to "wfd". */
31 void setWriteFileDescriptor(filedescriptor *wfd);
32
33 /* Sets the read and write file descriptor to "fd". */
34 void setReadAndWriteFileDescriptor(filedescriptor *fd);
35
36 /* Returns the read file descriptor. */
37 filedescriptor *getReadFileDescriptor();
38
39 /* Returns the write file descriptor. */
40 filedescriptor *getWriteFileDescriptor();
41
104 int32_t runScript(const char *script, char **abort);
105
173 int32_t runScript(const char *script, char **abort,
174 constnamevaluepairs *variables);
175
176 #include <rudiments/private/chat.h>
177 };
178
179 #endif
chat
Definition: chat.h:11
chat::chat
chat(filedescriptor *rfd, filedescriptor *wfd)
chat::chat
chat(filedescriptor *fd)
chat::runScript
int32_t runScript(const char *script, char **abort)
chat::~chat
~chat()
chat::chat
chat()
chat::runScript
int32_t runScript(const char *script, char **abort, constnamevaluepairs *variables)
filedescriptor
Definition: filedescriptor.h:13