chat.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_CHAT_H
#define RUDIMENTS_CHAT_H
#include <rudiments/private/chatincludes.h>
class RUDIMENTS_DLLSPEC chat {
public:
chat();
chat(filedescriptor *fd);
chat(filedescriptor *rfd, filedescriptor *wfd);
~chat();
/* Sets the read file descriptor to "rfd". */
void setReadFileDescriptor(filedescriptor *rfd);
/* Sets the write file descriptor to "wfd". */
void setWriteFileDescriptor(filedescriptor *wfd);
/* Sets the read and write file descriptor to "fd". */
void setReadAndWriteFileDescriptor(filedescriptor *fd);
/* Returns the read file descriptor. */
filedescriptor *getReadFileDescriptor();
/* Returns the write file descriptor. */
filedescriptor *getWriteFileDescriptor();
int32_t runScript(const char *script, char **abort);
int32_t runScript(const char *script, char **abort,
constnamevaluepairs *variables);
#include <rudiments/private/chat.h>
};
#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