summaryrefslogtreecommitdiff
path: root/gst/librfb/rfb.c
blob: cd9f9bc65c77f556b045c9ff4db2e946a6153ac0 (plain)
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
#include <stdio.h>
#include <stdlib.h>

#include "rfb.h"

int
main (int argc, char *argv[])
{
  RfbDecoder *decoder;

  // int fd = 0;

  decoder = rfb_decoder_new ();

  rfb_decoder_connect_tcp (decoder, "127.0.0.1", 5901);
  // rfb_decoder_use_file_descriptor (decoder, fd);

  while (!decoder->inited)
    rfb_decoder_iterate (decoder);

  rfb_decoder_send_update_request (decoder, FALSE, 0, 0, 100, 100);

  while (1) {
    rfb_decoder_iterate (decoder);
  }

  return 0;
}