Home | History | Annotate | Download | only in rfb

Lines Matching refs:client

47     (*(char *)&client->endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s))
50 (*(char *)&client->endianTest ? ((((l) & 0xff000000) >> 24) | \
56 (*(char *)&client->endianTest ? ((((l) & 0xff00000000000000ULL) >> 56) | \
90 /** client data */
147 * client->HandleTextChat to a pointer to that function subsequent to your
149 * @param client The client which called the text chat handler
154 typedef void (*HandleTextChatProc)(struct _rfbClient* client, int value, char *text);
158 * Define a function with this prototype and set client->HandleXvpMsg to a
160 * @param client The client which called the XVP message handler
164 typedef void (*HandleXvpMsgProc)(struct _rfbClient* client, uint8_t version, uint8_t opcode);
165 typedef void (*HandleKeyboardLedStateProc)(struct _rfbClient* client, int value, int pad);
166 typedef rfbBool (*HandleCursorPosProc)(struct _rfbClient* client, int x, int y);
167 typedef void (*SoftCursorLockAreaProc)(struct _rfbClient* client, int x, int y, int w, int h);
168 typedef void (*SoftCursorUnlockScreenProc)(struct _rfbClient* client);
169 typedef void (*GotFrameBufferUpdateProc)(struct _rfbClient* client, int x, int y, int w, int h);
170 typedef void (*FinishedFrameBufferUpdateProc)(struct _rfbClient* client);
171 typedef char* (*GetPasswordProc)(struct _rfbClient* client);
172 typedef rfbCredential* (*GetCredentialProc)(struct _rfbClient* client, int credentialType);
173 typedef rfbBool (*MallocFrameBufferProc)(struct _rfbClient* client);
174 typedef void (*GotXCutTextProc)(struct _rfbClient* client, const char *text, int textlen);
175 typedef void (*BellProc)(struct _rfbClient* client);
177 typedef void (*GotCursorShapeProc)(struct _rfbClient* client, int xhot, int yhot, int width, int height, int bytesPerPixel);
178 typedef void (*GotCopyRectProc)(struct _rfbClient* client, int src_x, int src_y, int w, int h, int dest_x, int dest_y);
329 /** The 0-terminated security types supported by the client.
337 /** the QoS IP DSCP for this client */
354 /* Output Window ID. When set, client application enables libvncclient to perform direct rendering in its window */
361 extern rfbBool HandleCursorShape(rfbClient* client,int xhot, int yhot, int width, int height, uint32_t enc);
373 extern rfbBool ConnectToRFBServer(rfbClient* client,const char *hostname, int port);
374 extern rfbBool ConnectToRFBRepeater(rfbClient* client,const char *repeaterHost, int repeaterPort, const char *destHost, int destPort);
375 extern void SetClientAuthSchemes(rfbClient* client,const uint32_t *authSchemes, int size);
376 extern rfbBool InitialiseRFBConnection(rfbClient* client);
379 * modify the 'client' data structure directly. However some changes to this
384 * Call this function to propagate your changes of the local 'client' structure
390 * @param client The client in which the format or encodings have been changed
394 extern rfbBool SetFormatAndEncodings(rfbClient* client);
395 extern rfbBool SendIncrementalFramebufferUpdateRequest(rfbClient* client);
397 * Sends a framebuffer update request to the server. A VNC client may request an
407 * @param client The client through which to send the request
416 extern rfbBool SendFramebufferUpdateRequest(rfbClient* client,
419 extern rfbBool SendScaleSetting(rfbClient* client,int scaleSetting);
428 * @note The cursor location is relative to the client's framebuffer, not the
429 * client's screen itself.
434 * @param client The client through which to send the pointer event
440 extern rfbBool SendPointerEvent(rfbClient* client,int x, int y, int buttonMask);
445 * @param client The client through which to send the key event
450 extern rfbBool SendKeyEvent(rfbClient* client,uint32_t key, rfbBool down);
457 * @param client The client structure through which to send the client cut text
461 * @return true if the client cut message was sent successfully, false otherwise
463 extern rfbBool SendClientCutText(rfbClient* client,char *str, int len);
470 * @param client The client which will handle the RFB server messages
471 * @return true if the client was able to handle the RFB server messages, false
474 extern rfbBool HandleRFBServerMessage(rfbClient* client);
478 * @param client The client through which to send the message
482 extern rfbBool TextChatSend(rfbClient* client, char *text);
485 * @param client The client through which to send the message
488 extern rfbBool TextChatOpen(rfbClient* client);
491 * @param client The client through which to send the message
494 extern rfbBool TextChatClose(rfbClient* client);
495 extern rfbBool TextChatFinish(rfbClient* client);
496 extern rfbBool PermitServerInput(rfbClient* client, int enabled);
497 extern rfbBool SendXvpMsg(rfbClient* client, uint8_t version, uint8_t code);
501 extern rfbBool SupportsClient2Server(rfbClient* client, int messageType);
502 extern rfbBool SupportsServer2Client(rfbClient* client, int messageType);
504 /* client data */
507 * Associates a client data tag with the given pointer. LibVNCClient has
509 * have the client structure as one of their parameters. Sometimes, you may want
515 * @param client The client in which to set the client data
519 void rfbClientSetClientData(rfbClient* client, void* tag, void* data);
521 * Returns a pointer to the client data associated with the given tag. See the
523 * can use client data.
524 * @param client The client from which to get the client data
525 * @param tag The tag which identifies the client data
526 * @return a pointer to the client data
528 void* rfbClientGetClientData(rfbClient* client, void* tag);
549 extern rfbBool ReadFromRFBServer(rfbClient* client, char *out, unsigned int n);
550 extern rfbBool WriteToRFBServer(rfbClient* client, char *buf, int n);
565 * with HandleRFBServerMessage(), you must wait for your client to receive one.
569 * @param client The client to cause to wait until a message is received
573 extern int WaitForMessage(rfbClient* client,unsigned int usecs);
578 * be the first LibVNCClient function your client code calls. Most libVNCClient
602 * Initializes the client. The format is {PROGRAM_NAME, [OPTIONS]..., HOST}. This
610 * <tr><td>-play</td><td>Set this client to replay a previously recorded session.</td></tr>
626 * @param client The client to initialize
630 * @return true if the client was initialized successfully, false otherwise.
632 rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv);
634 * Cleans up the client structure and releases the memory allocated for it. You
637 * @note rfbClientCleanup() does not touch client->frameBuffer.
638 * @param client The client to clean up
640 void rfbClientCleanup(rfbClient* client);
653 See SDLvncviewer.c for a rather complete client example.