summaryrefslogtreecommitdiffstats
path: root/examples/filetransfer.c
blob: 2d03fe10340b708e7a7c360673784b7436461bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * @example filetransfer.c
 */

#include <rfb/rfb.h>

int main(int argc,char** argv)
{                                                                
  rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,8,3,4);
  if(!server)
    return 0;
  server->frameBuffer=(char*)malloc(400*300*4);
  rfbRegisterTightVNCFileTransferExtension();
  rfbInitServer(server);           
  rfbRunEventLoop(server,-1,FALSE);
  return(0);
}
OpenPOWER on IntegriCloud