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;
157 #endif // __UNICONFCONN_H A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
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.
Represents a connection to a UniConf daemon via any WvStream.
void writevalue(const UniConfKey &key, WvStringParm value)
Writes a PART_VALUE message.
void writetext(WvStringParm text)
Writes a PART_TEXT message.
WvString readarg()
Reads the next argument from the command payload.
UniClientConn(IWvStream *_s, WvStringParm dst=WvString::null)
Create a wrapper around the supplied WvStream.
Command readcmd()
Reads a command from the connection.
void writecmd(Command command, WvStringParm payload=WvString::null)
Writes a command to the connection.
WvConstStringBuffer payloadbuf
void writeok(WvStringParm payload="")
Writes a REPLY_OK message.
WvString is an implementation of a simple and efficient printable-string class.
void writeonevalue(const UniConfKey &key, WvStringParm value)
Writes a PART_VALUE message.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's...
WvStreamClone simply forwards all requests to the "cloned" stream.
void writefail(WvStringParm payload="")
Writes a REPLY_FAIL message.
virtual void close()
Close this stream.