LibVNCServer/LibVNCClient
filetransfer.c
Go to the documentation of this file.
1 
7 #include <rfb/rfb.h>
8 
9 int main(int argc,char** argv)
10 {
12  rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,8,3,4);
13  if(!server)
14  return 1;
15  server->frameBuffer=(char*)malloc(400*300*4);
16  rfbInitServer(server);
17  rfbRunEventLoop(server,-1,FALSE);
18  return(0);
19 }
int main(int argc, char **argv)
Definition: filetransfer.c:9
void rfbInitServer(rfbScreenInfoPtr rfbScreen)
void rfbRunEventLoop(rfbScreenInfoPtr screenInfo, long usec, rfbBool runInBackground)
void rfbRegisterTightVNCFileTransferExtension(void)
Register the TightVNC-1.3.x file transfer extension.
rfbScreenInfoPtr rfbGetScreen(int *argc, char **argv, int width, int height, int bitsPerSample, int samplesPerPixel, int bytesPerPixel)
#define FALSE
Definition: rfbproto.h:110