client.h (1884B)
1/* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 20 21#ifndef __GUAC_VNC_CLIENT_H 22#define __GUAC_VNC_CLIENT_H 23 24#include <guacamole/client.h> 25 26/** 27 * The maximum duration of a frame in milliseconds. 28 */ 29#define GUAC_VNC_FRAME_DURATION 40 30 31/** 32 * The amount of time to allow per message read within a frame, in 33 * milliseconds. If the server is silent for at least this amount of time, the 34 * frame will be considered finished. 35 */ 36#define GUAC_VNC_FRAME_TIMEOUT 0 37 38/** 39 * The amount of time to wait for a new message from the VNC server when 40 * beginning a new frame. This value must be kept reasonably small such that 41 * a slow VNC server will not prevent external events from being handled (such 42 * as the stop signal from guac_client_stop()), but large enough that the 43 * message handling loop does not eat up CPU spinning. 44 */ 45#define GUAC_VNC_FRAME_START_TIMEOUT 1000000 46 47/** 48 * The number of milliseconds to wait between connection attempts. 49 */ 50#define GUAC_VNC_CONNECT_INTERVAL 1000 51 52/** 53 * Handler which frees all data associated with the guac_client. 54 */ 55guac_client_free_handler guac_vnc_client_free_handler; 56 57#endif 58