Synergy protocol utilities. More...
#include <CProtocolUtil.h>
Static Public Member Functions | |
| static void | writef (synergy::IStream *, const char *fmt,...) |
| Write formatted data. | |
| static bool | readf (synergy::IStream *, const char *fmt,...) |
| Read formatted data. | |
Synergy protocol utilities.
This class provides various functions for implementing the synergy protocol.
Definition at line 33 of file CProtocolUtil.h.
| bool CProtocolUtil::readf | ( | synergy::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 47 of file CProtocolUtil.cpp.
| void CProtocolUtil::writef | ( | synergy::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 31 of file CProtocolUtil.cpp.
Referenced by CClientProxy::close(), CClientProxy1_4::cryptoIv(), CClientProxy1_0::enter(), CClientProxy1_4::gameDeviceButtons(), CClientProxy1_4::gameDeviceSticks(), CClientProxy1_4::gameDeviceTimingReq(), CClientProxy1_4::gameDeviceTriggers(), 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().
1.7.1