• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * @example filetransfer.c
3  */
4 
5 #include <rfb/rfb.h>
6 
main(int argc,char ** argv)7 int main(int argc,char** argv)
8 {
9   rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,8,3,4);
10   if(!server)
11     return 0;
12   server->frameBuffer=(char*)malloc(400*300*4);
13   rfbRegisterTightVNCFileTransferExtension();
14   rfbInitServer(server);
15   rfbRunEventLoop(server,-1,FALSE);
16   return(0);
17 }
18