CProtocolUtil Class Reference

Synergy protocol utilities. More...

#include <CProtocolUtil.h>

List of all members.

Static Public Member Functions

static void writef (IStream *, const char *fmt,...)
 Write formatted data.
static bool readf (IStream *, const char *fmt,...)
 Read formatted data.


Detailed Description

Synergy protocol utilities.

This class provides various functions for implementing the synergy protocol.

Definition at line 29 of file CProtocolUtil.h.


Member Function Documentation

bool CProtocolUtil::readf ( IStream ,
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.

Referenced by CServerProxy::parseHandshakeMessage().

void CProtocolUtil::writef ( IStream ,
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 CClientProxy1_0::CClientProxy1_0(), CClientProxyUnknown::CClientProxyUnknown(), 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(), CServerProxy::onClipboardChanged(), CServerProxy::onGrabClipboard(), CServerProxy::parseHandshakeMessage(), CServerProxy::parseMessage(), CClientProxy1_0::resetOptions(), CClientProxy1_0::screensaver(), CClientProxy1_0::setClipboard(), and CClientProxy1_0::setOptions().


The documentation for this class was generated from the following files:
Generated on Fri Nov 6 00:19:10 2009 for synergy-plus by  doxygen 1.4.7