-
Notifications
You must be signed in to change notification settings - Fork 1
/
glue.h
47 lines (40 loc) · 1.25 KB
/
glue.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <stdint.h>
#define COLORMAP_SIZE 32768
#define BUFFER_SIZE 65535
typedef enum {UNKNOWN = 0, DRAC4 = 4, DRAC5 = 5, DRAC6 = 6, DRAC7 = 7, DRAC8 = 8, C6000 = 10} drac_type_t;
typedef struct client_ctx
{
int (*glue_write_data_ctrl)(struct client_ctx *, void *, size_t);
int (*glue_write_data_video)(struct client_ctx *, void *, size_t);
int (*glue_read_data_ctrl)(struct client_ctx *, size_t);
int (*glue_read_data_video)(struct client_ctx *, size_t);
int (*glue_start_ssl_ctrl)(struct client_ctx *);
int (*glue_start_ssl_video)(struct client_ctx *);
uint8_t ctrl_buffer[BUFFER_SIZE];
size_t ctrl_buffer_size;
uint8_t video_buffer[BUFFER_SIZE];
size_t video_buffer_size;
size_t unacked_video_packets;
char *user, *passwd;
char session_id[64];
drac_type_t dracType;
int ctrl_ssl;
int video_ssl;
int step_count;
int pointer_index;
int bytes_read;
int frame_count;
int needs_refresh;
uint8_t *packet_buffer;
int packet_buffer_size;
int height, width, eof, bof;
uint16_t codec;
uint32_t *framebuffer;
uint8_t fb_dirty;
struct {
uint8_t state[256];
uint8_t digest_key[16];
int x;
int y;
} rc4;
} client_ctx;