Synergy protocol utilities. More...
#include <CProtocolUtil.h>
Static Public Member Functions | |
static void | writef (IStream *, const char *fmt,...) |
Write formatted data. | |
static bool | readf (IStream *, const char *fmt,...) |
Read formatted data. |
Synergy protocol utilities.
This class provides various functions for implementing the synergy protocol.
Definition at line 29 of file CProtocolUtil.h.
bool CProtocolUtil::readf | ( | IStream * | stream, | |
const char * | fmt, | |||
... | ||||
) | [static] |
Read formatted data.
Read formatted binary data from a buffer. This performs the reverse operation of writef(). Returns true if the entire format was successfully parsed, false otherwise.
Format specifiers are:
Definition at line 43 of file CProtocolUtil.cpp.
void CProtocolUtil::writef | ( | IStream * | stream, | |
const char * | fmt, | |||
... | ||||
) | [static] |
Write formatted data.
Write formatted binary data to a stream. fmt
consists of regular characters and format specifiers. Format specifiers begin with %. All characters not part of a format specifier are regular and are transmitted unchanged.
Format specifiers are:
Definition at line 27 of file CProtocolUtil.cpp.
Referenced by CClientProxy::close(), CClientProxy1_0::enter(), CClientProxy1_0::grabClipboard(), CClientProxy1_1::keyDown(), CClientProxy1_0::keyDown(), CClientProxy1_1::keyRepeat(), CClientProxy1_0::keyRepeat(), CClientProxy1_1::keyUp(), CClientProxy1_0::keyUp(), CClientProxy1_0::leave(), CClientProxy1_0::mouseDown(), CClientProxy1_0::mouseMove(), CClientProxy1_2::mouseRelativeMove(), CClientProxy1_0::mouseUp(), CClientProxy1_3::mouseWheel(), CClientProxy1_0::mouseWheel(), CClientProxy1_0::resetOptions(), CClientProxy1_0::screensaver(), CClientProxy1_0::setClipboard(), and CClientProxy1_0::setOptions().