krfb
libvncserver/rfb/rfb.h
Go to the documentation of this file.
58 #define LOCK(mutex) (rfbLog("%s:%d LOCK(%s,0x%x)\n",__FILE__,__LINE__,#mutex,&(mutex)), pthread_mutex_lock(&(mutex)))
59 #define UNLOCK(mutex) (rfbLog("%s:%d UNLOCK(%s,0x%x)\n",__FILE__,__LINE__,#mutex,&(mutex)), pthread_mutex_unlock(&(mutex)))
61 #define INIT_MUTEX(mutex) (rfbLog("%s:%d INIT_MUTEX(%s,0x%x)\n",__FILE__,__LINE__,#mutex,&(mutex)), pthread_mutex_init(&(mutex),NULL))
62 #define TINI_MUTEX(mutex) (rfbLog("%s:%d TINI_MUTEX(%s)\n",__FILE__,__LINE__,#mutex), pthread_mutex_destroy(&(mutex)))
63 #define TSIGNAL(cond) (rfbLog("%s:%d TSIGNAL(%s)\n",__FILE__,__LINE__,#cond), pthread_cond_signal(&(cond)))
64 #define WAIT(cond,mutex) (rfbLog("%s:%d WAIT(%s,%s)\n",__FILE__,__LINE__,#cond,#mutex), pthread_cond_wait(&(cond),&(mutex)))
66 #define INIT_COND(cond) (rfbLog("%s:%d INIT_COND(%s)\n",__FILE__,__LINE__,#cond), pthread_cond_init(&(cond),NULL))
67 #define TINI_COND(cond) (rfbLog("%s:%d TINI_COND(%s)\n",__FILE__,__LINE__,#cond), pthread_cond_destroy(&(cond)))
134 typedef void (*rfbKbdAddEventProcPtr) (rfbBool down, rfbKeySym keySym, struct _rfbClientRec* cl);
140 typedef rfbBool (*rfbPasswordCheckProcPtr)(struct _rfbClientRec* cl,const char* encryptedPassWord,int len);
723 extern rfbBool rfbSendFileTransferMessage(rfbClientPtr cl, uint8_t contentType, uint8_t contentParam, uint32_t size, uint32_t length, const char *buffer);
725 extern rfbBool rfbProcessFileTransfer(rfbClientPtr cl, uint8_t contentType, uint8_t contentParam, uint32_t size, uint32_t length);
869 int rfbDrawChar(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,int x,int y,unsigned char c,rfbPixel colour);
870 void rfbDrawString(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,int x,int y,const char* string,rfbPixel colour);
872 int rfbDrawCharWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,int x,int y,unsigned char c,int x1,int y1,int x2,int y2,rfbPixel colour,rfbPixel backColour);
873 void rfbDrawStringWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,int x,int y,const char* string,int x1,int y1,int x2,int y2,rfbPixel colour,rfbPixel backColour);
909 extern rfbBool rfbProcessSizeArguments(int* width,int* height,int* bpp,int* argc, char *argv[]);
982 extern void rfbStatRecordEncodingSent(rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw);
983 extern void rfbStatRecordEncodingSentAdd(rfbClientPtr cl, uint32_t type, int byteCount); /* Specifically for tight encoding */
984 extern void rfbStatRecordEncodingRcvd(rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw);
985 extern void rfbStatRecordMessageSent(rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw);
986 extern void rfbStatRecordMessageRcvd(rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw);
void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen, sraRegionPtr copyRegion, int dx, int dy)
int(* rfbGetKeyboardLedStateHookPtr)(struct _rfbScreenInfo *screen)
support the capability to view the caps/num/scroll states of the X server
Definition: libvncserver/rfb/rfb.h:145
void rfbStatRecordEncodingRcvd(rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw)
sraRegionPtr requestedRegion
As part of the FramebufferUpdateRequest, a client can express interest in a subrectangle of the whole...
Definition: libvncserver/rfb/rfb.h:501
int maxRectsPerUpdate
send only this many rectangles in one update
Definition: libvncserver/rfb/rfb.h:294
int rfbReadExactTimeout(rfbClientPtr cl, char *buf, int len, int timeout)
rfbBool rfbEnableExtension(rfbClientPtr cl, rfbProtocolExtension *extension, void *data)
rfbClientPtr rfbNewUDPClient(rfbScreenInfoPtr rfbScreen)
void rfbPrintStats(rfbClientPtr cl)
int(* rfbFileTransferPermitted)(struct _rfbClientRec *cl)
Permit the server to allow or deny filetransfers.
Definition: libvncserver/rfb/rfb.h:162
rfbBool enableKeyboardLedState
client supports KeyboardState encoding
Definition: libvncserver/rfb/rfb.h:567
void rfbSendBell(rfbScreenInfoPtr rfbScreen)
int(* processArgument)(int argc, char *argv[])
processArguments returns the number of handled arguments
Definition: libvncserver/rfb/rfb.h:210
char * rfbMakeMaskFromAlphaSource(int width, int height, unsigned char *alphaSource)
void rfbNewClientConnection(rfbScreenInfoPtr rfbScreen, int sock)
struct rfbCursor *(* rfbGetCursorProcPtr)(struct _rfbClientRec *pScreen)
Definition: libvncserver/rfb/rfb.h:138
rfbCursorPtr rfbMakeXCursor(int width, int height, char *cursorString, char *maskString)
int rfbCheckFds(rfbScreenInfoPtr rfbScreen, long usec)
void rfbUnregisterTightVNCFileTransferExtension()
void rfbStatRecordEncodingSentAdd(rfbClientPtr cl, uint32_t type, int byteCount)
rfbDisplayFinishedHookPtr displayFinishedHook
displayFinishedHook is called just after a frame buffer update
Definition: libvncserver/rfb/rfb.h:368
typedef void(__LZO_CDECL *lzo_free_func_t)(lzo_callback_p self
rfbClientIteratorPtr rfbGetClientIterator(rfbScreenInfoPtr rfbScreen)
rfbBool rfbEconomicTranslate
rfbBool ignoreSIGPIPE
if TRUE, an ignoring signal handler is installed for SIGPIPE
Definition: libvncserver/rfb/rfb.h:344
rfbClientPtr rfbNewClient(rfbScreenInfoPtr rfbScreen, int sock)
rfbBool dontConvertRichCursorToXCursor
Definition: libvncserver/rfb/rfb.h:311
negotiating security (RFB v.3.7)
Definition: libvncserver/rfb/rfb.h:450
rfbNewClientHookPtr newClientHook
newClientHook is called just after a new client is created
Definition: libvncserver/rfb/rfb.h:331
rfbBool(* handleMessage)(struct _rfbClientRec *client, void *data, const rfbClientToServerMsg *message)
returns TRUE if message was handled
Definition: libvncserver/rfb/rfb.h:204
void rfbMarkRectAsModified(rfbScreenInfoPtr rfbScreen, int x1, int y1, int x2, int y2)
struct _rfbScreenInfo * rfbScreenInfoPtr
rfbLogProc rfbErr
void rfbSetClientColourMaps(rfbScreenInfoPtr rfbScreen, int firstColour, int nColours)
void(* SelectionChangedHookPtr)(int _index)
this opens a modal select box.
Definition: libvncserver/rfb/rfb.h:897
void rfbStatRecordMessageRcvd(rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw)
int rfbDrawChar(rfbScreenInfoPtr rfbScreen, rfbFontDataPtr font, int x, int y, unsigned char c, rfbPixel colour)
rfbSetTranslateFunctionProcPtr setTranslateFunction
Definition: libvncserver/rfb/rfb.h:324
void rfbDoCopyRegion(rfbScreenInfoPtr rfbScreen, sraRegionPtr copyRegion, int dx, int dy)
int rfbWidthOfChar(rfbFontDataPtr font, unsigned char c)
void rfbSendServerCutText(rfbScreenInfoPtr rfbScreen, char *str, int len)
void(* rfbKbdAddEventProcPtr)(rfbBool down, rfbKeySym keySym, struct _rfbClientRec *cl)
Definition: libvncserver/rfb/rfb.h:134
int compressionEnabled
Definition: libvncserver/rfb/rfb.h:398
int rfbListenOnUDPPort(int port, in_addr_t iface)
uint8_t authChallenge[CHALLENGESIZE]
Definition: libvncserver/rfb/rfb.h:466
rfbBool rfbSendSetColourMapEntries(rfbClientPtr cl, int firstColour, int nColours)
struct rfbFontData * rfbFontDataPtr
rfbBool enableCursorPosUpdates
client supports cursor position updates
Definition: libvncserver/rfb/rfb.h:570
char * rfbMakeMaskForXCursor(int width, int height, char *cursorString)
rfbBool rfbSendRectEncodingRaw(rfbClientPtr cl, int x, int y, int w, int h)
void rfbDrawLine(rfbScreenInfoPtr s, int x1, int y1, int x2, int y2, rfbPixel col)
void(* rfbKbdReleaseAllKeysProcPtr)(struct _rfbClientRec *cl)
Definition: libvncserver/rfb/rfb.h:135
void rfbHttpShutdownSockets(rfbScreenInfoPtr rfbScreen)
Definition: libvncserver/rfb/rfb.h:123
enum rfbNewClientAction(* rfbNewClientHookPtr)(struct _rfbClientRec *cl)
Definition: libvncserver/rfb/rfb.h:141
void(* rfbSetServerInputProcPtr)(struct _rfbClientRec *cl, int status)
Status determines if the X11 server permits input from the local user status==0 or 1...
Definition: libvncserver/rfb/rfb.h:157
rfbClientPtr rfbReverseConnection(rfbScreenInfoPtr rfbScreen, char *host, int port)
struct _rfbProtocolExtension * next
Definition: libvncserver/rfb/rfb.h:211
sending initialisation messages
Definition: libvncserver/rfb/rfb.h:452
void(* rfbDisplayHookPtr)(struct _rfbClientRec *cl)
Definition: libvncserver/rfb/rfb.h:142
void(* ClientGoneHookPtr)(struct _rfbClientRec *cl)
Definition: libvncserver/rfb/rfb.h:394
struct rfbCursor * rfbCursorPtr
Definition: libvncserver/rfb/rfb.h:166
struct rfbClientIterator * rfbClientIteratorPtr
Definition: libvncserver/rfb/rfb.h:692
rfbColourMap colourMap
set this if rfbServerFormat.trueColour==FALSE
Definition: libvncserver/rfb/rfb.h:252
void rfbDisconnectUDPSock(rfbScreenInfoPtr rfbScreen)
rfbBool rfbSendDirContent(rfbClientPtr cl, int length, char *buffer)
unsigned char rfbReverseByte[0x100]
enum rfbNewClientAction defaultNewClientHook(rfbClientPtr cl)
int rfbStatGetSentBytes(rfbClientPtr cl)
rfbBool(* init)(struct _rfbClientRec *client, void *data)
returns FALSE if extension should be deactivated for client.
Definition: libvncserver/rfb/rfb.h:195
rfbBool rfbProcessSizeArguments(int *width, int *height, int *bpp, int *argc, char *argv[])
struct _rfbFileTransferData rfbFileTransferData
int rfbStatGetEncodingCountSent(rfbClientPtr cl, uint32_t type)
void rfbDrawStringWithClip(rfbScreenInfoPtr rfbScreen, rfbFontDataPtr font, int x, int y, const char *string, int x1, int y1, int x2, int y2, rfbPixel colour, rfbPixel backColour)
char * messageNameServer2Client(uint32_t type, char *buf, int len)
Definition: rfbproto.h:148
rfbBool rfbSendRectEncodingUltra(rfbClientPtr cl, int x, int y, int w, int h)
rfbBool(* rfbSetTranslateFunctionProcPtr)(struct _rfbClientRec *cl)
Definition: libvncserver/rfb/rfb.h:139
void(* rfbTranslateFnType)(char *table, rfbPixelFormat *in, rfbPixelFormat *out, char *iptr, char *optr, int bytesBetweenInputLines, int width, int height)
rfbTranslateFnType is the type of translation functions.
Definition: libvncserver/rfb/rfb.h:378
void(* rfbSetXCutTextProcPtr)(char *str, int len, struct _rfbClientRec *cl)
Definition: libvncserver/rfb/rfb.h:137
rfbBool rfbProcessFileTransfer(rfbClientPtr cl, uint8_t contentType, uint8_t contentParam, uint32_t size, uint32_t length)
void rfbIncrClientRef(rfbClientPtr cl)
struct _rfbClientRec * pointerClient
"Mutex" for pointer events
Definition: libvncserver/rfb/rfb.h:305
void rfbMarkRegionAsModified(rfbScreenInfoPtr rfbScreen, sraRegionPtr modRegion)
rfbBool enableSupportedEncodings
client supports SupportedEncodings encoding
Definition: libvncserver/rfb/rfb.h:565
rfbBool rfbSendRectEncodingRRE(rfbClientPtr cl, int x, int y, int w, int h)
void(* rfbSetSingleWindowProcPtr)(struct _rfbClientRec *cl, int x, int y)
If x==1 and y==1 then set the whole display else find the window underneath x and y and set the frame...
Definition: libvncserver/rfb/rfb.h:152
void rfbClientConnFailed(rfbClientPtr cl, const char *reason)
int rfbStatGetMessageCountRcvd(rfbClientPtr cl, uint32_t type)
int rfbWriteExact(rfbClientPtr cl, const char *buf, int len)
int rfbStatGetEncodingCountRcvd(rfbClientPtr cl, uint32_t type)
rfbBool rfbSendUpdateBuf(rfbClientPtr cl)
void rfbShutdownSockets(rfbScreenInfoPtr rfbScreen)
void rfbSetServerVersionIdentity(rfbScreenInfoPtr screen, char *fmt,...)
void rfbAuthProcessClientMessage(rfbClientPtr cl)
Definition: libvncserver/rfb/rfb.h:417
rfbBool rfbSendNewFBSize(rfbClientPtr cl, int w, int h)
void rfbWholeFontBBox(rfbFontDataPtr font, int *x1, int *y1, int *x2, int *y2)
this returns the smallest box enclosing any character of font.
rfbBool(* newClient)(struct _rfbClientRec *client, void **data)
returns FALSE if extension should be deactivated for client.
Definition: libvncserver/rfb/rfb.h:192
struct _rfbSecurity rfbSecurityHandler
Security handling (RFB protocol version 3.7)
int * metaData
metaData is a 256*5 array: for each character (offset,width,height,x,y)
Definition: libvncserver/rfb/rfb.h:866
int rfbStringToAddr(char *string, in_addr_t *addr)
rfbBool rfbProcessArguments(rfbScreenInfoPtr rfbScreen, int *argc, char *argv[])
rfbBool rfbSendRectEncodingCoRRE(rfbClientPtr cl, int x, int y, int w, int h)
void rfbClientListInit(rfbScreenInfoPtr rfbScreen)
void rfbSetCursor(rfbScreenInfoPtr rfbScreen, rfbCursorPtr c)
rfbSetSingleWindowProcPtr setSingleWindow
Definition: libvncserver/rfb/rfb.h:325
struct _rfbStatList rfbStatList
struct _rfbClientRec * rfbClientPtr
Definition: libvncserver/rfb/rfb.h:396
int rfbConnect(rfbScreenInfoPtr rfbScreen, char *host, int port)
rfbBool rfbIsActive(rfbScreenInfoPtr screenInfo)
void rfbGotXCutText(rfbScreenInfoPtr rfbScreen, char *str, int len)
rfbBool rfbSendFramebufferUpdate(rfbClientPtr cl, sraRegionPtr updateRegion)
int rfbReadExact(rfbClientPtr cl, char *buf, int len)
rfbBool alphaPreMultiplied
if richSource already has alpha applied
Definition: libvncserver/rfb/rfb.h:829
int lastKeyboardLedState
keep track of last value so we can send change events
Definition: libvncserver/rfb/rfb.h:563
void rfbProcessClientSecurityType(rfbClientPtr cl)
void rfbDoCopyRect(rfbScreenInfoPtr rfbScreen, int x1, int y1, int x2, int y2, int dx, int dy)
int deferUpdateTime
this is the amount of milliseconds to wait at least before sending an update.
Definition: libvncserver/rfb/rfb.h:297
void rfbFillRect(rfbScreenInfoPtr s, int x1, int y1, int x2, int y2, rfbPixel col)
rfbBool rfbSendLastRectMarker(rfbClientPtr cl)
struct rfbFontData rfbFontData
rfbClientPtr rfbClientIteratorNext(rfbClientIteratorPtr iterator)
void rfbReleaseExtensionIterator()
int rfbStatGetRcvdBytesIfRaw(rfbClientPtr cl)
void rfbFontBBox(rfbFontDataPtr font, unsigned char c, int *x1, int *y1, int *x2, int *y2)
int rfbStatGetMessageCountSent(rfbClientPtr cl, uint32_t type)
void rfbStatRecordEncodingSent(rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw)
int * pseudoEncodings
if pseudoEncodings is not NULL, it contains a 0 terminated list of the pseudo encodings handled by th...
Definition: libvncserver/rfb/rfb.h:198
void(* close)(struct _rfbClientRec *client, void *data)
Definition: libvncserver/rfb/rfb.h:207
rfbBool useRichCursorEncoding
rfbEncodingRichCursor is preferred
Definition: libvncserver/rfb/rfb.h:571
int rfbSelectBox(rfbScreenInfoPtr rfbScreen, rfbFontDataPtr font, char **list, int x1, int y1, int x2, int y2, rfbPixel foreColour, rfbPixel backColour, int border, SelectionChangedHookPtr selChangedHook)
void rfbRegisterProtocolExtension(rfbProtocolExtension *extension)
void(* rfbDisplayFinishedHookPtr)(struct _rfbClientRec *cl, int result)
Definition: libvncserver/rfb/rfb.h:143
rfbPasswordCheckProcPtr passwordCheck
Definition: libvncserver/rfb/rfb.h:287
void rfbMakeRichCursorFromXCursor(rfbScreenInfoPtr rfbScreen, rfbCursorPtr cursor)
void rfbScreenCleanup(rfbScreenInfoPtr screenInfo)
void rfbScheduleCopyRect(rfbScreenInfoPtr rfbScreen, int x1, int y1, int x2, int y2, int dx, int dy)
void rfbDrawPixel(rfbScreenInfoPtr s, int x, int y, rfbPixel col)
void rfbProcessUDPInput(rfbScreenInfoPtr rfbScreen)
void rfbStartOnHoldClient(rfbClientPtr cl)
rfbBool rfbSendFileTransferMessage(rfbClientPtr cl, uint8_t contentType, uint8_t contentParam, uint32_t size, uint32_t length, const char *buffer)
char rfbEndianTest
char * encodingName(uint32_t enc, char *buf, int len)
void rfbTranslateNone(char *table, rfbPixelFormat *in, rfbPixelFormat *out, char *iptr, char *optr, int bytesBetweenInputLines, int width, int height)
void rfbNewUDPConnection(rfbScreenInfoPtr rfbScreen, int sock)
char * messageNameClient2Server(uint32_t type, char *buf, int len)
rfbKbdReleaseAllKeysProcPtr kbdReleaseAllKeys
Definition: libvncserver/rfb/rfb.h:320
struct _rfbExtensionData rfbExtensionData
void rfbLogPerror(const char *str)
void rfbShutdownServer(rfbScreenInfoPtr rfbScreen, rfbBool disconnectClients)
void rfbSetProtocolVersion(rfbScreenInfoPtr rfbScreen, int major_, int minor_)
Set which version you want to advertise 3.3, 3.6, 3.7 and 3.8 are currently supported.
struct _rfbScreenInfo * scaledScreenNext
this structure has children that are scaled versions of this screen
Definition: libvncserver/rfb/rfb.h:229
int rfbListenOnTCPPort(int port, in_addr_t iface)
void rfbHttpInitSockets(rfbScreenInfoPtr rfbScreen)
rfbBool rfbDisableExtension(rfbClientPtr cl, rfbProtocolExtension *extension)
void rfbUsage(void)
int rfbStatGetSentBytesIfRaw(rfbClientPtr cl)
void rfbConvertLSBCursorBitmapOrMask(int width, int height, unsigned char *bitmap)
void rfbNewFramebuffer(rfbScreenInfoPtr rfbScreen, char *framebuffer, int width, int height, int bitsPerSample, int samplesPerPixel, int bytesPerPixel)
Definition: rfbproto.h:1400
int rfbConnectToTcpAddr(char *host, int port)
rfbBool permitFileTransfer
command line authorization of file transfers
Definition: libvncserver/rfb/rfb.h:365
struct rfbCursor rfbCursor
rfbBool rfbSendCursorPos(rfbClientPtr cl)
char * translateLookupTable
Definition: libvncserver/rfb/rfb.h:519
rfbBool httpEnableProxyConnect
Definition: libvncserver/rfb/rfb.h:281
int cursorY
the coordinates of the cursor, if enableCursorShapeUpdates = FALSE
Definition: libvncserver/rfb/rfb.h:574
void rfbRunEventLoop(rfbScreenInfoPtr screenInfo, long usec, rfbBool runInBackground)
rfbBool(* rfbXvpHookPtr)(struct _rfbClientRec *cl, uint8_t, uint8_t)
Definition: libvncserver/rfb/rfb.h:146
void rfbHttpCheckFds(rfbScreenInfoPtr rfbScreen)
rfbFileTransferPermitted getFileTransferPermission
Definition: libvncserver/rfb/rfb.h:327
rfbBool rfbProcessNewConnection(rfbScreenInfoPtr rfbScreen)
void rfbRefuseOnHoldClient(rfbClientPtr cl)
void rfbStatRecordMessageSent(rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw)
rfbStatList * rfbStatLookupMessage(rfbClientPtr cl, uint32_t type)
int protocolMajorVersion
What does the server tell the new clients which version it supports.
Definition: libvncserver/rfb/rfb.h:361
struct timeval startPtrDeferring
Definition: libvncserver/rfb/rfb.h:510
void rfbDoNothingWithClient(rfbClientPtr cl)
rfbBool rfbCheckPasswordByList(rfbClientPtr cl, const char *response, int len)
to check against plain passwords
void rfbRegisterTightVNCFileTransferExtension()
Definition: libvncserver/rfb/rfb.h:214
void(* rfbSetTextChat)(struct _rfbClientRec *cl, int length, char *string)
Handle the textchat messages.
Definition: libvncserver/rfb/rfb.h:164
int progressiveSliceY
if progressive updating is on, this variable holds the current y coordinate of the progressive slice...
Definition: libvncserver/rfb/rfb.h:606
void rfbMakeXCursorFromRichCursor(rfbScreenInfoPtr rfbScreen, rfbCursorPtr cursor)
rfbGetKeyboardLedStateHookPtr getKeyboardLedStateHook
These hooks are called to pass keyboard state back to the client.
Definition: libvncserver/rfb/rfb.h:336
rfbBool readyForSetColourMapEntries
Definition: libvncserver/rfb/rfb.h:458
Definition: libvncserver/rfb/rfb.h:131
rfbBool enableServerIdentity
client supports ServerIdentity encoding
Definition: libvncserver/rfb/rfb.h:566
rfbBool rfbSetNonBlocking(int sock)
rfbLogProc rfbLog
establishing protocol version
Definition: libvncserver/rfb/rfb.h:449
void rfbLogEnable(int enabled)
rfbScreenInfoPtr scaledScreen
points to a scaled version of the screen buffer in cl->scaledScreenList
Definition: libvncserver/rfb/rfb.h:423
int progressiveSliceHeight
if not zero, only a slice of this height is processed every time an update should be sent...
Definition: libvncserver/rfb/rfb.h:349
void rfbFreeCursor(rfbCursorPtr cursor)
rfbBool handleEventsEagerly
handle as many input events as possible (default off)
Definition: libvncserver/rfb/rfb.h:355
#define UPDATE_BUF_SIZE
UPDATE_BUF_SIZE must be big enough to send at least one whole line of the framebuffer.
Definition: libvncserver/rfb/rfb.h:528
int rfbDrawCharWithClip(rfbScreenInfoPtr rfbScreen, rfbFontDataPtr font, int x, int y, unsigned char c, int x1, int y1, int x2, int y2, rfbPixel colour, rfbPixel backColour)
if colour==backColour, background is transparent
void rfbRegisterSecurityHandler(rfbSecurityHandler *handler)
struct _rfbProtocolExtension * rfbGetExtensionIterator()
rfbBool rfbSendCursorShape(rfbClientPtr cl)
rfbBool enableLastRectEncoding
client supports LastRect encoding
Definition: libvncserver/rfb/rfb.h:568
void rfbDrawString(rfbScreenInfoPtr rfbScreen, rfbFontDataPtr font, int x, int y, const char *string, rfbPixel colour)
rfbBool rfbSetTranslateFunction(rfbClientPtr cl)
void rfbReleaseClientIterator(rfbClientIteratorPtr iterator)
void rfbProcessClientMessage(rfbClientPtr cl)
char * frameBuffer
the frameBuffer has to be supplied by the serving process.
Definition: libvncserver/rfb/rfb.h:318
rfbBool rfbProcessEvents(rfbScreenInfoPtr screenInfo, long usec)
struct timeval startDeferring
The following member represents the state of the "deferred update" timer.
Definition: libvncserver/rfb/rfb.h:509
int rfbMaxClientWait
rfbBool rfbSendRectEncodingHextile(rfbClientPtr cl, int x, int y, int w, int h)
rfbBool rfbSendFileTransferChunk(rfbClientPtr cl)
rfbBool(* rfbPasswordCheckProcPtr)(struct _rfbClientRec *cl, const char *encryptedPassWord, int len)
Definition: libvncserver/rfb/rfb.h:140
Definition: libvncserver/rfb/rfb.h:406
rfbBool rfbUpdateClient(rfbClientPtr cl)
void * screenData
some screen specific data can be put into a struct where screenData points to.
Definition: libvncserver/rfb/rfb.h:247
rfbBool rfbSetClientColourMap(rfbClientPtr cl, int firstColour, int nColours)
rfbScreenInfoPtr rfbGetScreen(int *argc, char **argv, int width, int height, int bitsPerSample, int samplesPerPixel, int bytesPerPixel)
rfbBool cleanup
set this to true if LibVNCServer has to free this cursor
Definition: libvncserver/rfb/rfb.h:821
rfbFontDataPtr rfbLoadConsoleFont(char *filename)
dynamically load a linux console font (4096 bytes, 256 glyphs a 8x16
rfbBool PalmVNC
how did the client tell us it wanted the screen changed? Ultra style or palm style?
Definition: libvncserver/rfb/rfb.h:425
Definition: libvncserver/rfb/rfb.h:125
char * rfbProcessFileTransferReadBuffer(rfbClientPtr cl, uint32_t length)
void * rfbGetExtensionClientData(rfbClientPtr cl, rfbProtocolExtension *extension)
rfbBool rfbSendCopyRegion(rfbClientPtr cl, sraRegionPtr reg, int dx, int dy)
Definition: libvncserver/rfb/rfb.h:129
int authPasswdFirstViewOnly
If rfbAuthPasswdData is given a list, this is the first view only password.
Definition: libvncserver/rfb/rfb.h:291
rfbXvpHookPtr xvpHook
xvpHook is called to handle an xvp client message
Definition: libvncserver/rfb/rfb.h:370
rfbTranslateFnType translateFn
translateFn points to the translation function which is used to copy and translate a rectangle from t...
Definition: libvncserver/rfb/rfb.h:518
rfbBool enableCursorShapeUpdates
client supports cursor shape updates
Definition: libvncserver/rfb/rfb.h:569
void rfbResetStats(rfbClientPtr cl)
int rfbWidthOfString(rfbFontDataPtr font, const char *string)
rfbBool(* enablePseudoEncoding)(struct _rfbClientRec *client, void **data, int encodingNumber)
returns TRUE if that pseudo encoding is handled by the extension.
Definition: libvncserver/rfb/rfb.h:201
Definition: libvncserver/rfb/rfb.h:130
void(* rfbPtrAddEventProcPtr)(int buttonMask, int x, int y, struct _rfbClientRec *cl)
Definition: libvncserver/rfb/rfb.h:136
void rfbDefaultPtrAddEvent(int buttonMask, int x, int y, rfbClientPtr cl)
cursor handling for the pointer
void rfbUnregisterProtocolExtension(rfbProtocolExtension *extension)
rfbBool rfbSendTextChatMessage(rfbClientPtr cl, uint32_t length, char *buffer)
send a TextChat message to a client
Definition: libvncserver/rfb/rfb.h:819
struct _rfbClientRec rfbClientRec
void rfbInitSockets(rfbScreenInfoPtr rfbScreen)
void(* handler)(struct _rfbClientRec *cl)
Definition: libvncserver/rfb/rfb.h:181
rfbBool enableSupportedMessages
client supports SupportedMessages encoding
Definition: libvncserver/rfb/rfb.h:564
rfbStatList * rfbStatLookupEncoding(rfbClientPtr cl, uint32_t type)
int rfbStatGetRcvdBytes(rfbClientPtr cl)
rfbDisplayHookPtr displayHook
displayHook is called just before a frame buffer update
Definition: libvncserver/rfb/rfb.h:333
void rfbPurgeArguments(int *argc, int *position, int count, char *argv[])
Definition: libvncserver/rfb/rfb.h:124
rfbSetServerInputProcPtr setServerInput
Definition: libvncserver/rfb/rfb.h:326
Definition: libvncserver/rfb/rfb.h:859
void rfbAuthNewClient(rfbClientPtr cl)
void rfbClientConnectionGone(rfbClientPtr cl)
void rfbUnregisterSecurityHandler(rfbSecurityHandler *handler)
void rfbDecrClientRef(rfbClientPtr cl)
void rfbCloseClient(rfbClientPtr cl)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.