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
11class RUDIMENTS_DLLSPEC chat : public object {
12 public:
15
19
23
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,
175
176 #include <rudiments/private/chat.h>
177};
178
179#endif
Definition chat.h:11
chat(filedescriptor *rfd, filedescriptor *wfd)
chat(filedescriptor *fd)
int32_t runScript(const char *script, char **abort)
int32_t runScript(const char *script, char **abort, dictionary< const char *, const char * > *variables)
Definition dictionary.h:12
Definition filedescriptor.h:13
Definition object.h:10