droidVncServer/jni/vnc/LibVNCServer-0.9.9/examples/filetransfer.c
2012-06-11 20:07:57 +01:00

18 lines
430 B
C

/**
* @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);
}