7 #ifndef __UNICONFCONN_H
8 #define __UNICONFCONN_H
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;
121 void writeok(WvStringParm payload =
"");
127 void writefail(WvStringParm payload =
"");
154 void writemsg(WvStringParm message);
157 #endif // __UNICONFCONN_H
WvConstStringBuffer payloadbuf
void writeok(WvStringParm payload="")
Writes a REPLY_OK message.
WvString readarg()
Reads the next argument from the command payload.
void writetext(WvStringParm text)
Writes a PART_TEXT message.
A raw memory read-only buffer backed by a constant WvString.
Represents a connection to a UniConf daemon via any WvStream.
WvString is an implementation of a simple and efficient printable-string class.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
WvStreamClone simply forwards all requests to the "cloned" stream.
void writefail(WvStringParm payload="")
Writes a REPLY_FAIL message.
UniClientConn(IWvStream *_s, WvStringParm dst=WvString::null)
Create a wrapper around the supplied WvStream.
void writecmd(Command command, WvStringParm payload=WvString::null)
Writes a command to the connection.
Command readcmd()
Reads a command from the connection.
void writeonevalue(const UniConfKey &key, WvStringParm value)
Writes a PART_VALUE message.
virtual void close()
Close this stream.
void writevalue(const UniConfKey &key, WvStringParm value)
Writes a PART_VALUE message.