10#include "uniconfkey.h"
11#include "uniconfgen.h"
12#include "wvstreamclone.h"
13#include "wvistreamlist.h"
17#define UNICONF_PROTOCOL_VERSION UniClientConn::NUM_COMMANDS
18#define DEFAULT_UNICONF_DAEMON_TCP_PORT 4111
19#define DEFAULT_UNICONF_DAEMON_SSL_PORT 4112
85 const char *description;
90 UniClientConn(IWvStream *_s, WvStringParm dst = WvString::null);
121 void writeok(WvStringParm payload =
"");
127 void writefail(WvStringParm payload =
"");
154 void writemsg(WvStringParm message);
void writeonevalue(const UniConfKey &key, WvStringParm value)
Writes a PART_VALUE message.
virtual void close()
Close this stream.
Command readcmd()
Reads a command from the connection.
void writetext(WvStringParm text)
Writes a PART_TEXT message.
void writecmd(Command command, WvStringParm payload=WvString::null)
Writes a command to the connection.
UniClientConn(IWvStream *_s, WvStringParm dst=WvString::null)
Create a wrapper around the supplied WvStream.
void writefail(WvStringParm payload="")
Writes a REPLY_FAIL message.
WvString readarg()
Reads the next argument from the command payload.
WvConstStringBuffer payloadbuf
void writeok(WvStringParm payload="")
Writes a REPLY_OK message.
void writevalue(const UniConfKey &key, WvStringParm value)
Writes a PART_VALUE message.
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
A raw memory read-only buffer backed by a constant WvString.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
WvStreamClone(IWvStream *_cloned=NULL)
Constructs the stream, then calls setclone(_cloned).
WvString is an implementation of a simple and efficient printable-string class.