diff options
Diffstat (limited to 'examples/filetransfer.c')
-rw-r--r-- | examples/filetransfer.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/filetransfer.c b/examples/filetransfer.c new file mode 100644 index 0000000..dacf73d --- /dev/null +++ b/examples/filetransfer.c @@ -0,0 +1,11 @@ +#include <rfb/rfb.h> + +int main(int argc,char** argv) +{ + rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,8,3,4); + server->frameBuffer=(char*)malloc(400*300*4); + rfbRegisterTightVNCFileTransferExtension(); + rfbInitServer(server); + rfbRunEventLoop(server,-1,FALSE); + return(0); +} |