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

Proxy for server. More...

#include <ServerProxy.h>

Public Member Functions

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

manipulators

enum class  ConnectionResult { Okay , Unknown , Disconnect }
void onInfoChanged ()
bool onGrabClipboard (ClipboardID)
void onClipboardChanged (ClipboardID, const IClipboard *)
ConnectionResult parseHandshakeMessage (const uint8_t *code)
ConnectionResult parseMessage (const uint8_t *code)

Detailed Description

Proxy for server.

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.

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 ( )

Member Function Documentation

◆ 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)
protected

◆ parseMessage()

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

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