Deskflow 1.27.0.5
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ServerProxy Class Reference

Proxy for server implementing protocol version 1.6. More...

#include <ServerProxy.h>

Inheritance diagram for ServerProxy:

Public Member Functions

 ServerProxy (Client *client, deskflow::IStream *stream, IEventQueue *events)
 ServerProxy (ServerProxy const &)=delete
 ServerProxy (ServerProxy &&)=delete
virtual ~ServerProxy ()
ServerProxy & operator= (ServerProxy const &)=delete
ServerProxy & operator= (ServerProxy &&)=delete

manipulators

enum class  ConnectionResult { Okay , Unknown , Disconnect }
void onInfoChanged ()
bool onGrabClipboard (ClipboardID)
void onClipboardChanged (ClipboardID, const IClipboard *)
virtual ConnectionResult parseHandshakeMessage (const uint8_t *code)
virtual ConnectionResult parseMessage (const uint8_t *code)
void keyDown (uint16_t id, uint16_t mask, uint16_t button, const std::string &lang)
void keyRepeat (uint16_t id, uint16_t mask, uint16_t count, uint16_t button, const std::string &lang)
deskflow::IStream * getStream () const

Detailed Description

Proxy for server implementing protocol version 1.6.

This class acts a proxy for the server, converting calls into messages to the server and messages from the server to calls on the client. It implements 1.6, the oldest version the client supports; later versions subclass it and add their messages.

Member Enumeration Documentation

◆ ConnectionResult

enum class ServerProxy::ConnectionResult
strongprotected
Enumerator
Okay 
Unknown 
Disconnect 

Constructor & Destructor Documentation

◆ ServerProxy() [1/3]

ServerProxy::ServerProxy ( Client * client,
deskflow::IStream * stream,
IEventQueue * events )

Process messages from the server on stream and forward to client.

◆ ServerProxy() [2/3]

ServerProxy::ServerProxy ( ServerProxy const & )
delete

◆ ServerProxy() [3/3]

ServerProxy::ServerProxy ( ServerProxy && )
delete

◆ ~ServerProxy()

ServerProxy::~ServerProxy ( )
virtual

Member Function Documentation

◆ getStream()

deskflow::IStream * ServerProxy::getStream ( ) const
inlineprotected

◆ keyDown()

void ServerProxy::keyDown ( uint16_t id,
uint16_t mask,
uint16_t button,
const std::string & lang )
protected

◆ keyRepeat()

void ServerProxy::keyRepeat ( uint16_t id,
uint16_t mask,
uint16_t count,
uint16_t button,
const std::string & lang )
protected

◆ onClipboardChanged()

void ServerProxy::onClipboardChanged ( ClipboardID id,
const IClipboard * clipboard )

◆ onGrabClipboard()

bool ServerProxy::onGrabClipboard ( ClipboardID id)

◆ onInfoChanged()

void ServerProxy::onInfoChanged ( )

◆ operator=() [1/2]

ServerProxy & ServerProxy::operator= ( ServerProxy && )
delete

◆ operator=() [2/2]

ServerProxy & ServerProxy::operator= ( ServerProxy const & )
delete

◆ parseHandshakeMessage()

ServerProxy::ConnectionResult ServerProxy::parseHandshakeMessage ( const uint8_t * code)
protectedvirtual

Reimplemented in ServerProxy1_8.

◆ parseMessage()

ServerProxy::ConnectionResult ServerProxy::parseMessage ( const uint8_t * code)
protectedvirtual

Reimplemented in ServerProxy1_7, and ServerProxy1_8.


The documentation for this class was generated from the following files: