libguac 1.5.5
Loading...
Searching...
No Matches
Data Fields
guac_stream Struct Reference

Represents a single stream within the Guacamole protocol. More...

Data Fields

int index
 The index of this stream.
 
void * data
 Arbitrary data associated with this stream.
 
guac_user_ack_handlerack_handler
 Handler for ack events sent by the Guacamole web-client.
 
guac_user_blob_handlerblob_handler
 Handler for blob events sent by the Guacamole web-client.
 
guac_user_end_handlerend_handler
 Handler for stream end events sent by the Guacamole web-client.
 

Detailed Description

Represents a single stream within the Guacamole protocol.

Field Documentation

◆ ack_handler

guac_user_ack_handler* guac_stream::ack_handler

Handler for ack events sent by the Guacamole web-client.

The handler takes a guac_stream which contains the stream index and will persist through the duration of the transfer, a string containing the error or status message, and a status code.

Example:

int ack_handler(guac_user* user, guac_stream* stream,
char* error, guac_protocol_status status);
int some_function(guac_user* user) {
stream, "text/plain");
}
guac_protocol_status
Set of all possible status codes returned by protocol operations.
Definition protocol-types.h:44
int guac_protocol_send_clipboard(guac_socket *socket, const guac_stream *stream, const char *mimetype)
Sends a clipboard instruction over the given guac_socket connection.
Represents a single stream within the Guacamole protocol.
Definition stream.h:32
guac_user_ack_handler * ack_handler
Handler for ack events sent by the Guacamole web-client.
Definition stream.h:67
Representation of a physical connection within a larger logical connection which may be shared.
Definition user.h:115
guac_socket * socket
This user's actual socket.
Definition user.h:127
guac_stream * guac_user_alloc_stream(guac_user *user)
Allocates a new stream.

◆ blob_handler

guac_user_blob_handler* guac_stream::blob_handler

Handler for blob events sent by the Guacamole web-client.

The handler takes a guac_stream which contains the stream index and will persist through the duration of the transfer, an arbitrary buffer containing the blob, and the length of the blob.

Example:

int blob_handler(guac_user* user, guac_stream* stream,
void* data, int length);
int my_clipboard_handler(guac_user* user, guac_stream* stream,
char* mimetype) {
}
guac_user_blob_handler * blob_handler
Handler for blob events sent by the Guacamole web-client.
Definition stream.h:87
void * data
Arbitrary data associated with this stream.
Definition stream.h:42

◆ end_handler

guac_user_end_handler* guac_stream::end_handler

Handler for stream end events sent by the Guacamole web-client.

The handler takes only a guac_stream which contains the stream index. This guac_stream will be disposed of immediately after this event is finished.

Example:

int end_handler(guac_user* user, guac_stream* stream);
int my_clipboard_handler(guac_user* user, guac_stream* stream,
char* mimetype) {
}
guac_user_end_handler * end_handler
Handler for stream end events sent by the Guacamole web-client.
Definition stream.h:106

The documentation for this struct was generated from the following file: