Data Structures | Files | Defines | Typedefs | Enumerations | Functions | Variables

LibVNCServer API Reference

Data Structures

struct  rfbColourMap
struct  rfbSecurityHandler
 Security handling (RFB protocol version 3.7). More...
struct  rfbProtocolExtension
 Protocol extension handling. More...
struct  rfbExtensionData
struct  rfbScreenInfoPtr
 Per-screen (framebuffer) structure. More...
struct  rfbFileTransferData
struct  rfbStatList
struct  rfbClientPtr
struct  rfbCursorPtr
struct  rfbFontDataPtr

Files

file  rfb.h

Defines

#define LOCK(mutex)
#define UNLOCK(mutex)
#define MUTEX(mutex)
#define INIT_MUTEX(mutex)
#define TINI_MUTEX(mutex)
#define TSIGNAL(cond)
#define WAIT(cond, mutex)   this_is_unsupported
#define COND(cond)
#define INIT_COND(cond)
#define TINI_COND(cond)
#define IF_PTHREADS(x)
#define rfbInitServer   rfbInitServerWithoutPthreadsAndZRLE
#define FB_UPDATE_PENDING(cl)
 This macro is used to test whether there is a framebuffer update needing to be sent to the client.
#define Swap16(s)   ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff))
#define Swap24(l)
#define Swap32(l)
#define Swap16IfLE(s)   (rfbEndianTest ? Swap16(s) : (s))
#define Swap24IfLE(l)   (rfbEndianTest ? Swap24(l) : (l))
#define Swap32IfLE(l)   (rfbEndianTest ? Swap32(l) : (l))
#define Swap16IfBE(s)   (rfbEndianTest ? (s) : Swap16(s))
#define Swap24IfBE(l)   (rfbEndianTest ? (l) : Swap24(l))
#define Swap32IfBE(l)   (rfbEndianTest ? (l) : Swap32(l))
#define ULTRA_MAX_RECT_SIZE   (128*256)
#define ULTRA_MAX_SIZE(min)

Typedefs

typedef void(* rfbKbdAddEventProcPtr )(rfbBool down, rfbKeySym keySym, struct _rfbClientRec *cl)
typedef void(* rfbKbdReleaseAllKeysProcPtr )(struct _rfbClientRec *cl)
typedef void(* rfbPtrAddEventProcPtr )(int buttonMask, int x, int y, struct _rfbClientRec *cl)
typedef void(* rfbSetXCutTextProcPtr )(char *str, int len, struct _rfbClientRec *cl)
typedef rfbBool(* rfbSetTranslateFunctionProcPtr )(struct _rfbClientRec *cl)
typedef rfbBool(* rfbPasswordCheckProcPtr )(struct _rfbClientRec *cl, const char *encryptedPassWord, int len)
typedef enum rfbNewClientAction(* rfbNewClientHookPtr )(struct _rfbClientRec *cl)
typedef void(* rfbDisplayHookPtr )(struct _rfbClientRec *cl)
typedef void(* rfbDisplayFinishedHookPtr )(struct _rfbClientRec *cl, int result)
typedef int(* rfbGetKeyboardLedStateHookPtr )(struct _rfbScreenInfo *screen)
 support the capability to view the caps/num/scroll states of the X server
typedef rfbBool(* rfbXvpHookPtr )(struct _rfbClientRec *cl, uint8_t, uint8_t)
typedef 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 framebuffer to the dimensions of that window.
typedef void(* rfbSetServerInputProcPtr )(struct _rfbClientRec *cl, int status)
 Status determines if the X11 server permits input from the local user status==0 or 1.
typedef int(* rfbFileTransferPermitted )(struct _rfbClientRec *cl)
 Permit the server to allow or deny filetransfers.
typedef void(* rfbSetTextChat )(struct _rfbClientRec *cl, int length, char *string)
 Handle the textchat messages.
typedef 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.
typedef struct sraRegionsraRegionPtr
typedef void(* ClientGoneHookPtr )(struct _rfbClientRec *cl)
typedef struct _rfbSslCtx rfbSslCtx
typedef struct _wsCtx wsCtx
typedef void(* SelectionChangedHookPtr )(int _index)
 this opens a modal select box.
typedef void(* rfbLogProc )(const char *format,...)

Enumerations

enum  rfbNewClientAction { RFB_CLIENT_ACCEPT, RFB_CLIENT_ON_HOLD, RFB_CLIENT_REFUSE }
enum  rfbSocketState { RFB_SOCKET_INIT, RFB_SOCKET_READY, RFB_SOCKET_SHUTDOWN }

Functions

void rfbInitSockets (rfbScreenInfoPtr rfbScreen)
void rfbShutdownSockets (rfbScreenInfoPtr rfbScreen)
void rfbDisconnectUDPSock (rfbScreenInfoPtr rfbScreen)
void rfbCloseClient (rfbClientPtr cl)
int rfbReadExact (rfbClientPtr cl, char *buf, int len)
int rfbReadExactTimeout (rfbClientPtr cl, char *buf, int len, int timeout)
int rfbPeekExactTimeout (rfbClientPtr cl, char *buf, int len, int timeout)
int rfbWriteExact (rfbClientPtr cl, const char *buf, int len)
int rfbCheckFds (rfbScreenInfoPtr rfbScreen, long usec)
int rfbConnect (rfbScreenInfoPtr rfbScreen, char *host, int port)
int rfbConnectToTcpAddr (char *host, int port)
int rfbListenOnTCPPort (int port, in_addr_t iface)
int rfbListenOnTCP6Port (int port, const char *iface)
int rfbListenOnUDPPort (int port, in_addr_t iface)
int rfbStringToAddr (char *string, in_addr_t *addr)
rfbBool rfbSetNonBlocking (int sock)
void rfbClientListInit (rfbScreenInfoPtr rfbScreen)
rfbClientIteratorPtr rfbGetClientIterator (rfbScreenInfoPtr rfbScreen)
rfbClientPtr rfbClientIteratorNext (rfbClientIteratorPtr iterator)
void rfbReleaseClientIterator (rfbClientIteratorPtr iterator)
void rfbIncrClientRef (rfbClientPtr cl)
void rfbDecrClientRef (rfbClientPtr cl)
void rfbNewClientConnection (rfbScreenInfoPtr rfbScreen, int sock)
rfbClientPtr rfbNewClient (rfbScreenInfoPtr rfbScreen, int sock)
rfbClientPtr rfbNewUDPClient (rfbScreenInfoPtr rfbScreen)
rfbClientPtr rfbReverseConnection (rfbScreenInfoPtr rfbScreen, char *host, int port)
void rfbClientConnectionGone (rfbClientPtr cl)
void rfbProcessClientMessage (rfbClientPtr cl)
void rfbClientConnFailed (rfbClientPtr cl, const char *reason)
void rfbNewUDPConnection (rfbScreenInfoPtr rfbScreen, int sock)
void rfbProcessUDPInput (rfbScreenInfoPtr rfbScreen)
rfbBool rfbSendFramebufferUpdate (rfbClientPtr cl, sraRegionPtr updateRegion)
rfbBool rfbSendRectEncodingRaw (rfbClientPtr cl, int x, int y, int w, int h)
rfbBool rfbSendUpdateBuf (rfbClientPtr cl)
void rfbSendServerCutText (rfbScreenInfoPtr rfbScreen, char *str, int len)
rfbBool rfbSendCopyRegion (rfbClientPtr cl, sraRegionPtr reg, int dx, int dy)
rfbBool rfbSendLastRectMarker (rfbClientPtr cl)
rfbBool rfbSendNewFBSize (rfbClientPtr cl, int w, int h)
rfbBool rfbSendSetColourMapEntries (rfbClientPtr cl, int firstColour, int nColours)
void rfbSendBell (rfbScreenInfoPtr rfbScreen)
char * rfbProcessFileTransferReadBuffer (rfbClientPtr cl, uint32_t length)
rfbBool rfbSendFileTransferChunk (rfbClientPtr cl)
rfbBool rfbSendDirContent (rfbClientPtr cl, int length, char *buffer)
rfbBool rfbSendFileTransferMessage (rfbClientPtr cl, uint8_t contentType, uint8_t contentParam, uint32_t size, uint32_t length, const char *buffer)
rfbBool rfbProcessFileTransfer (rfbClientPtr cl, uint8_t contentType, uint8_t contentParam, uint32_t size, uint32_t length)
void rfbGotXCutText (rfbScreenInfoPtr rfbScreen, char *str, int len)
void rfbTranslateNone (char *table, rfbPixelFormat *in, rfbPixelFormat *out, char *iptr, char *optr, int bytesBetweenInputLines, int width, int height)
rfbBool rfbSetTranslateFunction (rfbClientPtr cl)
rfbBool rfbSetClientColourMap (rfbClientPtr cl, int firstColour, int nColours)
void rfbSetClientColourMaps (rfbScreenInfoPtr rfbScreen, int firstColour, int nColours)
void rfbHttpInitSockets (rfbScreenInfoPtr rfbScreen)
void rfbHttpShutdownSockets (rfbScreenInfoPtr rfbScreen)
void rfbHttpCheckFds (rfbScreenInfoPtr rfbScreen)
void rfbAuthNewClient (rfbClientPtr cl)
void rfbProcessClientSecurityType (rfbClientPtr cl)
void rfbAuthProcessClientMessage (rfbClientPtr cl)
void rfbRegisterSecurityHandler (rfbSecurityHandler *handler)
void rfbUnregisterSecurityHandler (rfbSecurityHandler *handler)
rfbBool rfbSendRectEncodingRRE (rfbClientPtr cl, int x, int y, int w, int h)
rfbBool rfbSendRectEncodingCoRRE (rfbClientPtr cl, int x, int y, int w, int h)
rfbBool rfbSendRectEncodingHextile (rfbClientPtr cl, int x, int y, int w, int h)
rfbBool rfbSendRectEncodingUltra (rfbClientPtr cl, int x, int y, int w, int h)
rfbBool rfbSendCursorShape (rfbClientPtr cl)
rfbBool rfbSendCursorPos (rfbClientPtr cl)
void rfbConvertLSBCursorBitmapOrMask (int width, int height, unsigned char *bitmap)
rfbCursorPtr rfbMakeXCursor (int width, int height, char *cursorString, char *maskString)
char * rfbMakeMaskForXCursor (int width, int height, char *cursorString)
char * rfbMakeMaskFromAlphaSource (int width, int height, unsigned char *alphaSource)
void rfbMakeXCursorFromRichCursor (rfbScreenInfoPtr rfbScreen, rfbCursorPtr cursor)
void rfbMakeRichCursorFromXCursor (rfbScreenInfoPtr rfbScreen, rfbCursorPtr cursor)
void rfbFreeCursor (rfbCursorPtr cursor)
void rfbSetCursor (rfbScreenInfoPtr rfbScreen, rfbCursorPtr c)
void rfbDefaultPtrAddEvent (int buttonMask, int x, int y, rfbClientPtr cl)
 cursor handling for the pointer
void rfbResetStats (rfbClientPtr cl)
void rfbPrintStats (rfbClientPtr cl)
int rfbDrawChar (rfbScreenInfoPtr rfbScreen, rfbFontDataPtr font, int x, int y, unsigned char c, rfbPixel colour)
void rfbDrawString (rfbScreenInfoPtr rfbScreen, rfbFontDataPtr font, int x, int y, const char *string, rfbPixel colour)
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 rfbDrawStringWithClip (rfbScreenInfoPtr rfbScreen, rfbFontDataPtr font, int x, int y, const char *string, int x1, int y1, int x2, int y2, rfbPixel colour, rfbPixel backColour)
int rfbWidthOfString (rfbFontDataPtr font, const char *string)
int rfbWidthOfChar (rfbFontDataPtr font, unsigned char c)
void rfbFontBBox (rfbFontDataPtr font, unsigned char c, int *x1, int *y1, int *x2, int *y2)
void rfbWholeFontBBox (rfbFontDataPtr font, int *x1, int *y1, int *x2, int *y2)
 this returns the smallest box enclosing any character of font.
rfbFontDataPtr rfbLoadConsoleFont (char *filename)
 dynamically load a linux console font (4096 bytes, 256 glyphs a 8x16
void rfbFreeFont (rfbFontDataPtr font)
 free a dynamically loaded font
void rfbFillRect (rfbScreenInfoPtr s, int x1, int y1, int x2, int y2, rfbPixel col)
void rfbDrawPixel (rfbScreenInfoPtr s, int x, int y, rfbPixel col)
void rfbDrawLine (rfbScreenInfoPtr s, int x1, int y1, int x2, int y2, rfbPixel col)
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 rfbUsage (void)
void rfbPurgeArguments (int *argc, int *position, int count, char *argv[])
rfbBool rfbProcessArguments (rfbScreenInfoPtr rfbScreen, int *argc, char *argv[])
rfbBool rfbProcessSizeArguments (int *width, int *height, int *bpp, int *argc, char *argv[])
void rfbLogEnable (int enabled)
void rfbLogPerror (const char *str)
void rfbScheduleCopyRect (rfbScreenInfoPtr rfbScreen, int x1, int y1, int x2, int y2, int dx, int dy)
void rfbScheduleCopyRegion (rfbScreenInfoPtr rfbScreen, sraRegionPtr copyRegion, int dx, int dy)
void rfbDoCopyRect (rfbScreenInfoPtr rfbScreen, int x1, int y1, int x2, int y2, int dx, int dy)
void rfbDoCopyRegion (rfbScreenInfoPtr rfbScreen, sraRegionPtr copyRegion, int dx, int dy)
void rfbMarkRectAsModified (rfbScreenInfoPtr rfbScreen, int x1, int y1, int x2, int y2)
void rfbMarkRegionAsModified (rfbScreenInfoPtr rfbScreen, sraRegionPtr modRegion)
void rfbDoNothingWithClient (rfbClientPtr cl)
enum rfbNewClientAction defaultNewClientHook (rfbClientPtr cl)
void rfbRegisterProtocolExtension (rfbProtocolExtension *extension)
void rfbUnregisterProtocolExtension (rfbProtocolExtension *extension)
struct _rfbProtocolExtension * rfbGetExtensionIterator ()
void rfbReleaseExtensionIterator ()
rfbBool rfbEnableExtension (rfbClientPtr cl, rfbProtocolExtension *extension, void *data)
rfbBool rfbDisableExtension (rfbClientPtr cl, rfbProtocolExtension *extension)
void * rfbGetExtensionClientData (rfbClientPtr cl, rfbProtocolExtension *extension)
rfbBool rfbCheckPasswordByList (rfbClientPtr cl, const char *response, int len)
 to check against plain passwords
rfbScreenInfoPtr rfbGetScreen (int *argc, char **argv, int width, int height, int bitsPerSample, int samplesPerPixel, int bytesPerPixel)
void rfbInitServer (rfbScreenInfoPtr rfbScreen)
void rfbShutdownServer (rfbScreenInfoPtr rfbScreen, rfbBool disconnectClients)
void rfbNewFramebuffer (rfbScreenInfoPtr rfbScreen, char *framebuffer, int width, int height, int bitsPerSample, int samplesPerPixel, int bytesPerPixel)
void rfbScreenCleanup (rfbScreenInfoPtr screenInfo)
void rfbSetServerVersionIdentity (rfbScreenInfoPtr screen, char *fmt,...)
void rfbStartOnHoldClient (rfbClientPtr cl)
void rfbRefuseOnHoldClient (rfbClientPtr cl)
void rfbRunEventLoop (rfbScreenInfoPtr screenInfo, long usec, rfbBool runInBackground)
rfbBool rfbProcessEvents (rfbScreenInfoPtr screenInfo, long usec)
rfbBool rfbIsActive (rfbScreenInfoPtr screenInfo)
void rfbRegisterTightVNCFileTransferExtension ()
void rfbUnregisterTightVNCFileTransferExtension ()
char * messageNameServer2Client (uint32_t type, char *buf, int len)
char * messageNameClient2Server (uint32_t type, char *buf, int len)
char * encodingName (uint32_t enc, char *buf, int len)
rfbStatListrfbStatLookupEncoding (rfbClientPtr cl, uint32_t type)
rfbStatListrfbStatLookupMessage (rfbClientPtr cl, uint32_t type)
void rfbStatRecordEncodingSent (rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw)
void rfbStatRecordEncodingSentAdd (rfbClientPtr cl, uint32_t type, int byteCount)
void rfbStatRecordEncodingRcvd (rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw)
void rfbStatRecordMessageSent (rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw)
void rfbStatRecordMessageRcvd (rfbClientPtr cl, uint32_t type, int byteCount, int byteIfRaw)
int rfbStatGetSentBytes (rfbClientPtr cl)
int rfbStatGetSentBytesIfRaw (rfbClientPtr cl)
int rfbStatGetRcvdBytes (rfbClientPtr cl)
int rfbStatGetRcvdBytesIfRaw (rfbClientPtr cl)
int rfbStatGetMessageCountSent (rfbClientPtr cl, uint32_t type)
int rfbStatGetMessageCountRcvd (rfbClientPtr cl, uint32_t type)
int rfbStatGetEncodingCountSent (rfbClientPtr cl, uint32_t type)
int rfbStatGetEncodingCountRcvd (rfbClientPtr cl, uint32_t type)
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.
rfbBool rfbSendTextChatMessage (rfbClientPtr cl, uint32_t length, char *buffer)
 send a TextChat message to a client
rfbBool rfbProcessNewConnection (rfbScreenInfoPtr rfbScreen)
rfbBool rfbUpdateClient (rfbClientPtr cl)

Variables

char rfbEndianTest
int rfbMaxClientWait
rfbBool rfbEconomicTranslate
unsigned char rfbReverseByte [0x100]
rfbLogProc rfbLog
rfbLogProc rfbErr

Define Documentation

#define COND (   cond  ) 

Definition at line 101 of file rfb.h.

#define FB_UPDATE_PENDING (   cl  ) 
Value:
(((cl)->enableCursorShapeUpdates && (cl)->cursorWasChanged) ||        \
     (((cl)->enableCursorShapeUpdates == FALSE &&                          \
       ((cl)->cursorX != (cl)->screen->cursorX ||                          \
        (cl)->cursorY != (cl)->screen->cursorY))) ||                       \
     ((cl)->useNewFBSize && (cl)->newFBSizePending) ||                     \
     ((cl)->enableCursorPosUpdates && (cl)->cursorWasMoved) ||             \
     !sraRgnEmpty((cl)->copyRegion) || !sraRgnEmpty((cl)->modifiedRegion))

This macro is used to test whether there is a framebuffer update needing to be sent to the client.

Definition at line 705 of file rfb.h.

#define IF_PTHREADS (   x  ) 

Definition at line 104 of file rfb.h.

#define INIT_COND (   cond  ) 

Definition at line 102 of file rfb.h.

#define INIT_MUTEX (   mutex  ) 

Definition at line 97 of file rfb.h.

#define LOCK (   mutex  ) 

Definition at line 94 of file rfb.h.

#define MUTEX (   mutex  ) 

Definition at line 96 of file rfb.h.

#define rfbInitServer   rfbInitServerWithoutPthreadsAndZRLE
Examples:
camera.c, example.c, filetransfer.c, pnmshow.c, pnmshow24.c, and vncev.c.

Definition at line 123 of file rfb.h.

#define Swap16 (   s  )     ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff))

Definition at line 718 of file rfb.h.

#define Swap16IfBE (   s  )     (rfbEndianTest ? (s) : Swap16(s))

Definition at line 736 of file rfb.h.

#define Swap16IfLE (   s  )     (rfbEndianTest ? Swap16(s) : (s))

Definition at line 731 of file rfb.h.

#define Swap24 (   l  ) 
Value:
((((l) & 0xff) << 16) | (((l) >> 16) & 0xff) | \
                   (((l) & 0x00ff00)))

Definition at line 720 of file rfb.h.

#define Swap24IfBE (   l  )     (rfbEndianTest ? (l) : Swap24(l))

Definition at line 737 of file rfb.h.

#define Swap24IfLE (   l  )     (rfbEndianTest ? Swap24(l) : (l))

Definition at line 732 of file rfb.h.

#define Swap32 (   l  ) 
Value:
(((l) >> 24) | \
                   (((l) & 0x00ff0000) >> 8)  | \
                   (((l) & 0x0000ff00) << 8)  | \
                   ((l) << 24))

Definition at line 723 of file rfb.h.

#define Swap32IfBE (   l  )     (rfbEndianTest ? (l) : Swap32(l))

Definition at line 738 of file rfb.h.

#define Swap32IfLE (   l  )     (rfbEndianTest ? Swap32(l) : (l))

Definition at line 733 of file rfb.h.

#define TINI_COND (   cond  ) 

Definition at line 103 of file rfb.h.

#define TINI_MUTEX (   mutex  ) 

Definition at line 98 of file rfb.h.

#define TSIGNAL (   cond  ) 

Definition at line 99 of file rfb.h.

#define ULTRA_MAX_RECT_SIZE   (128*256)

Definition at line 860 of file rfb.h.

#define ULTRA_MAX_SIZE (   min  ) 
Value:
((( min * 2 ) > ULTRA_MAX_RECT_SIZE ) ? \
                            ( min * 2 ) : ULTRA_MAX_RECT_SIZE )

Definition at line 861 of file rfb.h.

#define UNLOCK (   mutex  ) 

Definition at line 95 of file rfb.h.

#define WAIT (   cond,
  mutex 
)    this_is_unsupported

Definition at line 100 of file rfb.h.


Typedef Documentation

typedef void(* ClientGoneHookPtr)(struct _rfbClientRec *cl)

Definition at line 415 of file rfb.h.

typedef void(* rfbDisplayFinishedHookPtr)(struct _rfbClientRec *cl, int result)

Definition at line 152 of file rfb.h.

typedef void(* rfbDisplayHookPtr)(struct _rfbClientRec *cl)

Definition at line 151 of file rfb.h.

typedef int(* rfbFileTransferPermitted)(struct _rfbClientRec *cl)

Permit the server to allow or deny filetransfers.

This is defaulted to deny It is called when a client initiates a connection to determine if it is permitted.

Definition at line 171 of file rfb.h.

typedef int(* rfbGetKeyboardLedStateHookPtr)(struct _rfbScreenInfo *screen)

support the capability to view the caps/num/scroll states of the X server

Definition at line 154 of file rfb.h.

typedef void(* rfbKbdAddEventProcPtr)(rfbBool down, rfbKeySym keySym, struct _rfbClientRec *cl)

Definition at line 143 of file rfb.h.

typedef void(* rfbKbdReleaseAllKeysProcPtr)(struct _rfbClientRec *cl)

Definition at line 144 of file rfb.h.

typedef void(* rfbLogProc)(const char *format,...)

Definition at line 1002 of file rfb.h.

typedef enum rfbNewClientAction(* rfbNewClientHookPtr)(struct _rfbClientRec *cl)

Definition at line 150 of file rfb.h.

typedef rfbBool(* rfbPasswordCheckProcPtr)(struct _rfbClientRec *cl, const char *encryptedPassWord, int len)

Definition at line 149 of file rfb.h.

typedef void(* rfbPtrAddEventProcPtr)(int buttonMask, int x, int y, struct _rfbClientRec *cl)

Definition at line 145 of file rfb.h.

typedef void(* rfbSetServerInputProcPtr)(struct _rfbClientRec *cl, int status)

Status determines if the X11 server permits input from the local user status==0 or 1.

Definition at line 166 of file rfb.h.

typedef 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 framebuffer to the dimensions of that window.

Definition at line 161 of file rfb.h.

typedef void(* rfbSetTextChat)(struct _rfbClientRec *cl, int length, char *string)

Handle the textchat messages.

Definition at line 173 of file rfb.h.

typedef rfbBool(* rfbSetTranslateFunctionProcPtr)(struct _rfbClientRec *cl)

Definition at line 148 of file rfb.h.

typedef void(* rfbSetXCutTextProcPtr)(char *str, int len, struct _rfbClientRec *cl)

Definition at line 146 of file rfb.h.

typedef struct _rfbSslCtx rfbSslCtx

Definition at line 438 of file rfb.h.

typedef 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 at line 399 of file rfb.h.

typedef rfbBool(* rfbXvpHookPtr)(struct _rfbClientRec *cl, uint8_t, uint8_t)

Definition at line 155 of file rfb.h.

typedef void(* SelectionChangedHookPtr)(int _index)

this opens a modal select box.

list is an array of strings, the end marked with a NULL. It returns the index in the list or -1 if cancelled or something else wasn't kosher.

Definition at line 985 of file rfb.h.

typedef struct sraRegion* sraRegionPtr

Definition at line 409 of file rfb.h.

typedef struct _wsCtx wsCtx

Definition at line 439 of file rfb.h.


Enumeration Type Documentation

Enumerator:
RFB_CLIENT_ACCEPT 
RFB_CLIENT_ON_HOLD 
RFB_CLIENT_REFUSE 

Definition at line 131 of file rfb.h.

Enumerator:
RFB_SOCKET_INIT 
RFB_SOCKET_READY 
RFB_SOCKET_SHUTDOWN 

Definition at line 137 of file rfb.h.


Function Documentation

enum rfbNewClientAction defaultNewClientHook ( rfbClientPtr  cl  ) 
char * encodingName ( uint32_t  enc,
char *  buf,
int  len 
)

Definition at line 92 of file stats.c.

Here is the caller graph for this function:

char * messageNameClient2Server ( uint32_t  type,
char *  buf,
int  len 
)

Definition at line 64 of file stats.c.

Here is the caller graph for this function:

char * messageNameServer2Client ( uint32_t  type,
char *  buf,
int  len 
)

Definition at line 46 of file stats.c.

Here is the caller graph for this function:

void rfbAuthNewClient ( rfbClientPtr  cl  ) 

Definition at line 298 of file auth.c.

Here is the call graph for this function:

void rfbAuthProcessClientMessage ( rfbClientPtr  cl  ) 

Definition at line 368 of file auth.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int rfbCheckFds ( rfbScreenInfoPtr  rfbScreen,
long  usec 
)

Definition at line 258 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbCheckPasswordByList ( rfbClientPtr  cl,
const char *  response,
int  len 
)

to check against plain passwords

Definition at line 732 of file main.c.

Here is the call graph for this function:

void rfbClientConnectionGone ( rfbClientPtr  cl  ) 

Definition at line 510 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbClientConnFailed ( rfbClientPtr  cl,
const char *  reason 
)

Definition at line 713 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbClientPtr rfbClientIteratorNext ( rfbClientIteratorPtr  iterator  ) 

Definition at line 191 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbClientListInit ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 141 of file rfbserver.c.

Here is the caller graph for this function:

void rfbCloseClient ( rfbClientPtr  cl  ) 
Examples:
example.c, pnmshow.c, and pnmshow24.c.

Definition at line 463 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int rfbConnect ( rfbScreenInfoPtr  rfbScreen,
char *  host,
int  port 
)

Definition at line 502 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int rfbConnectToTcpAddr ( char *  host,
int  port 
)

Definition at line 938 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbConvertLSBCursorBitmapOrMask ( int  width,
int  height,
unsigned char *  bitmap 
)

Definition at line 245 of file cursor.c.

void rfbDecrClientRef ( rfbClientPtr  cl  ) 

Definition at line 127 of file rfbserver.c.

Here is the caller graph for this function:

void rfbDefaultPtrAddEvent ( int  buttonMask,
int  x,
int  y,
rfbClientPtr  cl 
)

cursor handling for the pointer

Examples:
example.c.

Definition at line 636 of file main.c.

Here is the call graph for this function:

rfbBool rfbDisableExtension ( rfbClientPtr  cl,
rfbProtocolExtension extension 
)

Definition at line 181 of file main.c.

void rfbDisconnectUDPSock ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 455 of file sockets.c.

Here is the caller graph for this function:

void rfbDoCopyRect ( rfbScreenInfoPtr  rfbScreen,
int  x1,
int  y1,
int  x2,
int  y2,
int  dx,
int  dy 
)
Examples:
vncev.c.

Definition at line 385 of file main.c.

Here is the call graph for this function:

void rfbDoCopyRegion ( rfbScreenInfoPtr  rfbScreen,
sraRegionPtr  copyRegion,
int  dx,
int  dy 
)

Definition at line 356 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbDoNothingWithClient ( rfbClientPtr  cl  ) 

Definition at line 754 of file main.c.

int rfbDrawChar ( rfbScreenInfoPtr  rfbScreen,
rfbFontDataPtr  font,
int  x,
int  y,
unsigned char  c,
rfbPixel  colour 
)

Definition at line 3 of file font.c.

Here is the caller graph for this function:

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

Examples:
example.c.

Definition at line 48 of file font.c.

Here is the caller graph for this function:

void rfbDrawLine ( rfbScreenInfoPtr  s,
int  x1,
int  y1,
int  x2,
int  y2,
rfbPixel  col 
)

Definition at line 31 of file draw.c.

Here is the call graph for this function:

void rfbDrawPixel ( rfbScreenInfoPtr  s,
int  x,
int  y,
rfbPixel  col 
)

Definition at line 20 of file draw.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbDrawString ( rfbScreenInfoPtr  rfbScreen,
rfbFontDataPtr  font,
int  x,
int  y,
const char *  string,
rfbPixel  colour 
)
Examples:
example.c, and vncev.c.

Definition at line 37 of file font.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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 
)

Definition at line 104 of file font.c.

Here is the call graph for this function:

rfbBool rfbEnableExtension ( rfbClientPtr  cl,
rfbProtocolExtension extension,
void *  data 
)

Definition at line 162 of file main.c.

Here is the caller graph for this function:

void rfbFillRect ( rfbScreenInfoPtr  s,
int  x1,
int  y1,
int  x2,
int  y2,
rfbPixel  col 
)

Definition at line 3 of file draw.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbFontBBox ( rfbFontDataPtr  font,
unsigned char  c,
int *  x1,
int *  y1,
int *  x2,
int *  y2 
)
Examples:
example.c.

Definition at line 131 of file font.c.

void rfbFreeCursor ( rfbCursorPtr  cursor  ) 

Definition at line 346 of file cursor.c.

Here is the caller graph for this function:

void rfbFreeFont ( rfbFontDataPtr  font  ) 

free a dynamically loaded font

Definition at line 191 of file font.c.

rfbClientIteratorPtr rfbGetClientIterator ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 154 of file rfbserver.c.

Here is the caller graph for this function:

void* rfbGetExtensionClientData ( rfbClientPtr  cl,
rfbProtocolExtension extension 
)

Definition at line 202 of file main.c.

Here is the caller graph for this function:

struct _rfbProtocolExtension* rfbGetExtensionIterator (  )  [read]

Definition at line 146 of file main.c.

Here is the caller graph for this function:

rfbScreenInfoPtr rfbGetScreen ( int *  argc,
char **  argv,
int  width,
int  height,
int  bitsPerSample,
int  samplesPerPixel,
int  bytesPerPixel 
)
Examples:
camera.c, example.c, filetransfer.c, pnmshow.c, pnmshow24.c, and vncev.c.

Definition at line 809 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbGotXCutText ( rfbScreenInfoPtr  rfbScreen,
char *  str,
int  len 
)

Definition at line 35 of file cutpaste.c.

Here is the call graph for this function:

void rfbHttpCheckFds ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 155 of file httpd.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbHttpInitSockets ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 92 of file httpd.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbHttpShutdownSockets ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 129 of file httpd.c.

Here is the caller graph for this function:

void rfbIncrClientRef ( rfbClientPtr  cl  ) 

Definition at line 126 of file rfbserver.c.

Here is the caller graph for this function:

void rfbInitServer ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 1046 of file main.c.

Here is the call graph for this function:

void rfbInitSockets ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 112 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbIsActive ( rfbScreenInfoPtr  screenInfo  ) 
Examples:
camera.c, and example.c.

Definition at line 1172 of file main.c.

Here is the caller graph for this function:

int rfbListenOnTCP6Port ( int  port,
const char *  iface 
)

Definition at line 861 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int rfbListenOnTCPPort ( int  port,
in_addr_t  iface 
)

Definition at line 827 of file sockets.c.

Here is the caller graph for this function:

int rfbListenOnUDPPort ( int  port,
in_addr_t  iface 
)

Definition at line 1009 of file sockets.c.

Here is the caller graph for this function:

rfbFontDataPtr rfbLoadConsoleFont ( char *  filename  ) 

dynamically load a linux console font (4096 bytes, 256 glyphs a 8x16

Definition at line 164 of file font.c.

void rfbLogEnable ( int  enabled  ) 

Definition at line 222 of file main.c.

void rfbLogPerror ( const char *  str  ) 

Definition at line 262 of file main.c.

Here is the caller graph for this function:

char* rfbMakeMaskForXCursor ( int  width,
int  height,
char *  cursorString 
)

Definition at line 285 of file cursor.c.

Here is the caller graph for this function:

char* rfbMakeMaskFromAlphaSource ( int  width,
int  height,
unsigned char *  alphaSource 
)

Definition at line 310 of file cursor.c.

void rfbMakeRichCursorFromXCursor ( rfbScreenInfoPtr  rfbScreen,
rfbCursorPtr  cursor 
)

Definition at line 440 of file cursor.c.

Here is the caller graph for this function:

rfbCursorPtr rfbMakeXCursor ( int  width,
int  height,
char *  cursorString,
char *  maskString 
)
Examples:
example.c.

Definition at line 254 of file cursor.c.

Here is the call graph for this function:

void rfbMakeXCursorFromRichCursor ( rfbScreenInfoPtr  rfbScreen,
rfbCursorPtr  cursor 
)

Definition at line 370 of file cursor.c.

Here is the caller graph for this function:

void rfbMarkRectAsModified ( rfbScreenInfoPtr  rfbScreen,
int  x1,
int  y1,
int  x2,
int  y2 
)
Examples:
camera.c, and example.c.

Definition at line 416 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbMarkRegionAsModified ( rfbScreenInfoPtr  rfbScreen,
sraRegionPtr  modRegion 
)

Definition at line 399 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbClientPtr rfbNewClient ( rfbScreenInfoPtr  rfbScreen,
int  sock 
)

Definition at line 491 of file rfbserver.c.

Here is the caller graph for this function:

void rfbNewClientConnection ( rfbScreenInfoPtr  rfbScreen,
int  sock 
)

Definition at line 228 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbNewFramebuffer ( rfbScreenInfoPtr  rfbScreen,
char *  framebuffer,
int  width,
int  height,
int  bitsPerSample,
int  samplesPerPixel,
int  bytesPerPixel 
)
Examples:
example.c.

Definition at line 940 of file main.c.

Here is the call graph for this function:

rfbClientPtr rfbNewUDPClient ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 498 of file rfbserver.c.

Here is the caller graph for this function:

void rfbNewUDPConnection ( rfbScreenInfoPtr  rfbScreen,
int  sock 
)

Definition at line 3392 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int rfbPeekExactTimeout ( rfbClientPtr  cl,
char *  buf,
int  len,
int  timeout 
)

Definition at line 635 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbPrintStats ( rfbClientPtr  cl  ) 

Definition at line 375 of file stats.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbProcessArguments ( rfbScreenInfoPtr  rfbScreen,
int *  argc,
char *  argv[] 
)

Definition at line 77 of file cargs.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbProcessClientMessage ( rfbClientPtr  cl  ) 

Definition at line 611 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbProcessClientSecurityType ( rfbClientPtr  cl  ) 

Definition at line 330 of file auth.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbProcessEvents ( rfbScreenInfoPtr  screenInfo,
long  usec 
)
Examples:
camera.c, example.c, and vncev.c.

Definition at line 1090 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbProcessFileTransfer ( rfbClientPtr  cl,
uint8_t  contentType,
uint8_t  contentParam,
uint32_t  size,
uint32_t  length 
)

Definition at line 1476 of file rfbserver.c.

Here is the call graph for this function:

char * rfbProcessFileTransferReadBuffer ( rfbClientPtr  cl,
uint32_t  length 
)

Definition at line 1349 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbProcessNewConnection ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 380 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbProcessSizeArguments ( int *  width,
int *  height,
int *  bpp,
int *  argc,
char *  argv[] 
)

Definition at line 239 of file cargs.c.

Here is the call graph for this function:

void rfbProcessUDPInput ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 3408 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbPurgeArguments ( int *  argc,
int *  position,
int  count,
char *  argv[] 
)

Definition at line 68 of file cargs.c.

Here is the caller graph for this function:

int rfbReadExact ( rfbClientPtr  cl,
char *  buf,
int  len 
)

Definition at line 619 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int rfbReadExactTimeout ( rfbClientPtr  cl,
char *  buf,
int  len,
int  timeout 
)

Definition at line 543 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbRefuseOnHoldClient ( rfbClientPtr  cl  ) 

Definition at line 624 of file main.c.

Here is the call graph for this function:

void rfbRegisterProtocolExtension ( rfbProtocolExtension extension  ) 

Definition at line 69 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbRegisterSecurityHandler ( rfbSecurityHandler handler  ) 

Definition at line 49 of file auth.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbRegisterTightVNCFileTransferExtension (  ) 
Examples:
filetransfer.c.

Definition at line 536 of file rfbtightserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbReleaseClientIterator ( rfbClientIteratorPtr  iterator  ) 

Definition at line 215 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbReleaseExtensionIterator (  ) 

Definition at line 157 of file main.c.

Here is the caller graph for this function:

void rfbResetStats ( rfbClientPtr  cl  ) 

Definition at line 356 of file stats.c.

Here is the caller graph for this function:

rfbClientPtr rfbReverseConnection ( rfbScreenInfoPtr  rfbScreen,
char *  host,
int  port 
)

Definition at line 241 of file rfbserver.c.

Here is the call graph for this function:

void rfbRunEventLoop ( rfbScreenInfoPtr  screenInfo,
long  usec,
rfbBool  runInBackground 
)
Examples:
example.c, filetransfer.c, pnmshow.c, and pnmshow24.c.

Definition at line 1176 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbScheduleCopyRect ( rfbScreenInfoPtr  rfbScreen,
int  x1,
int  y1,
int  x2,
int  y2,
int  dx,
int  dy 
)

Definition at line 392 of file main.c.

Here is the call graph for this function:

void rfbScheduleCopyRegion ( rfbScreenInfoPtr  rfbScreen,
sraRegionPtr  copyRegion,
int  dx,
int  dy 
)

Definition at line 267 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbScreenCleanup ( rfbScreenInfoPtr  screenInfo  ) 
Examples:
example.c.

Definition at line 1008 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int rfbSelectBox ( rfbScreenInfoPtr  rfbScreen,
rfbFontDataPtr  font,
char **  list,
int  x1,
int  y1,
int  x2,
int  y2,
rfbPixel  foreColour,
rfbPixel  backColour,
int  border,
SelectionChangedHookPtr  selChangedHook 
)

Definition at line 203 of file selbox.c.

Here is the call graph for this function:

void rfbSendBell ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 3327 of file rfbserver.c.

Here is the call graph for this function:

rfbBool rfbSendCopyRegion ( rfbClientPtr  cl,
sraRegionPtr  reg,
int  dx,
int  dy 
)

Definition at line 3044 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendCursorPos ( rfbClientPtr  cl  ) 

Definition at line 181 of file cursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendCursorShape ( rfbClientPtr  cl  ) 

Definition at line 36 of file cursor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendDirContent ( rfbClientPtr  cl,
int  length,
char *  buffer 
)

Definition at line 1279 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendFileTransferChunk ( rfbClientPtr  cl  ) 

Definition at line 1377 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendFileTransferMessage ( rfbClientPtr  cl,
uint8_t  contentType,
uint8_t  contentParam,
uint32_t  size,
uint32_t  length,
const char *  buffer 
)

Definition at line 1169 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendFramebufferUpdate ( rfbClientPtr  cl,
sraRegionPtr  updateRegion 
)

Definition at line 2563 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendLastRectMarker ( rfbClientPtr  cl  ) 

Definition at line 3175 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendNewFBSize ( rfbClientPtr  cl,
int  w,
int  h 
)

Definition at line 3206 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendRectEncodingCoRRE ( rfbClientPtr  cl,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 53 of file corre.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendRectEncodingHextile ( rfbClientPtr  cl,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 40 of file hextile.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendRectEncodingRaw ( rfbClientPtr  cl,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 3100 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendRectEncodingRRE ( rfbClientPtr  cl,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 49 of file rre.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendRectEncodingUltra ( rfbClientPtr  cl,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 161 of file ultra.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbSendServerCutText ( rfbScreenInfoPtr  rfbScreen,
char *  str,
int  len 
)

Definition at line 3353 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendSetColourMapEntries ( rfbClientPtr  cl,
int  firstColour,
int  nColours 
)

Definition at line 3265 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSendTextChatMessage ( rfbClientPtr  cl,
uint32_t  length,
char *  buffer 
)

send a TextChat message to a client

Definition at line 1118 of file rfbserver.c.

Here is the call graph for this function:

rfbBool rfbSendUpdateBuf ( rfbClientPtr  cl  ) 

Definition at line 3244 of file rfbserver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

rfbBool rfbSetClientColourMap ( rfbClientPtr  cl,
int  firstColour,
int  nColours 
)

Definition at line 415 of file translate.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbSetClientColourMaps ( rfbScreenInfoPtr  rfbScreen,
int  firstColour,
int  nColours 
)

Definition at line 448 of file translate.c.

Here is the call graph for this function:

void rfbSetCursor ( rfbScreenInfoPtr  rfbScreen,
rfbCursorPtr  c 
)

Definition at line 726 of file cursor.c.

Here is the call graph for this function:

rfbBool rfbSetNonBlocking ( int  sock  ) 

Definition at line 1039 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Definition at line 262 of file rfbserver.c.

void rfbSetServerVersionIdentity ( rfbScreenInfoPtr  screen,
char *  fmt,
  ... 
)

Definition at line 1033 of file rfbserver.c.

rfbBool rfbSetTranslateFunction ( rfbClientPtr  cl  ) 

Definition at line 245 of file translate.c.

Here is the call graph for this function:

void rfbShutdownServer ( rfbScreenInfoPtr  rfbScreen,
rfbBool  disconnectClients 
)
Examples:
example.c.

Definition at line 1060 of file main.c.

Here is the call graph for this function:

void rfbShutdownSockets ( rfbScreenInfoPtr  rfbScreen  ) 

Definition at line 218 of file sockets.c.

Here is the caller graph for this function:

void rfbStartOnHoldClient ( rfbClientPtr  cl  ) 

Definition at line 616 of file main.c.

int rfbStatGetEncodingCountRcvd ( rfbClientPtr  cl,
uint32_t  type 
)

Definition at line 344 of file stats.c.

int rfbStatGetEncodingCountSent ( rfbClientPtr  cl,
uint32_t  type 
)

Definition at line 336 of file stats.c.

int rfbStatGetMessageCountRcvd ( rfbClientPtr  cl,
uint32_t  type 
)

Definition at line 327 of file stats.c.

int rfbStatGetMessageCountSent ( rfbClientPtr  cl,
uint32_t  type 
)

Definition at line 319 of file stats.c.

int rfbStatGetRcvdBytes ( rfbClientPtr  cl  ) 

Definition at line 295 of file stats.c.

int rfbStatGetRcvdBytesIfRaw ( rfbClientPtr  cl  ) 

Definition at line 307 of file stats.c.

int rfbStatGetSentBytes ( rfbClientPtr  cl  ) 

Definition at line 271 of file stats.c.

int rfbStatGetSentBytesIfRaw ( rfbClientPtr  cl  ) 

Definition at line 283 of file stats.c.

rfbStatList * rfbStatLookupEncoding ( rfbClientPtr  cl,
uint32_t  type 
)

Definition at line 165 of file stats.c.

Here is the caller graph for this function:

rfbStatList * rfbStatLookupMessage ( rfbClientPtr  cl,
uint32_t  type 
)

Definition at line 187 of file stats.c.

Here is the caller graph for this function:

void rfbStatRecordEncodingRcvd ( rfbClientPtr  cl,
uint32_t  type,
int  byteCount,
int  byteIfRaw 
)

Definition at line 231 of file stats.c.

Here is the call graph for this function:

void rfbStatRecordEncodingSent ( rfbClientPtr  cl,
uint32_t  type,
int  byteCount,
int  byteIfRaw 
)

Definition at line 218 of file stats.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbStatRecordEncodingSentAdd ( rfbClientPtr  cl,
uint32_t  type,
int  byteCount 
)

Definition at line 208 of file stats.c.

Here is the call graph for this function:

void rfbStatRecordMessageRcvd ( rfbClientPtr  cl,
uint32_t  type,
int  byteCount,
int  byteIfRaw 
)

Definition at line 257 of file stats.c.

Here is the call graph for this function:

void rfbStatRecordMessageSent ( rfbClientPtr  cl,
uint32_t  type,
int  byteCount,
int  byteIfRaw 
)

Definition at line 244 of file stats.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int rfbStringToAddr ( char *  string,
in_addr_t *  addr 
)

Definition at line 809 of file sockets.c.

Here is the caller graph for this function:

void rfbTranslateNone ( char *  table,
rfbPixelFormat in,
rfbPixelFormat out,
char *  iptr,
char *  optr,
int  bytesBetweenInputLines,
int  width,
int  height 
)

Definition at line 225 of file translate.c.

void rfbUnregisterProtocolExtension ( rfbProtocolExtension extension  ) 

Definition at line 108 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbUnregisterSecurityHandler ( rfbSecurityHandler handler  ) 

Definition at line 79 of file auth.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbUnregisterTightVNCFileTransferExtension (  ) 

Definition at line 542 of file rfbtightserver.c.

Here is the call graph for this function:

rfbBool rfbUpdateClient ( rfbClientPtr  cl  ) 

Definition at line 1121 of file main.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbUsage ( void   ) 

Definition at line 20 of file cargs.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void rfbWholeFontBBox ( rfbFontDataPtr  font,
int *  x1,
int *  y1,
int *  x2,
int *  y2 
)

this returns the smallest box enclosing any character of font.

Definition at line 143 of file font.c.

Here is the caller graph for this function:

int rfbWidthOfChar ( rfbFontDataPtr  font,
unsigned char  c 
)

Definition at line 126 of file font.c.

int rfbWidthOfString ( rfbFontDataPtr  font,
const char *  string 
)

Definition at line 116 of file font.c.

Here is the caller graph for this function:

int rfbWriteExact ( rfbClientPtr  cl,
const char *  buf,
int  len 
)

Definition at line 711 of file sockets.c.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 32 of file translate.c.

Definition at line 53 of file main.c.

Definition at line 260 of file main.c.

Examples:
pnmshow.c, pnmshow24.c, and vncev.c.

Definition at line 259 of file main.c.

Definition at line 103 of file sockets.c.

unsigned char rfbReverseByte[0x100]

Definition at line 209 of file cursor.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines