mirror of
https://github.com/Cateners/tiny_computer.git
synced 2026-05-20 16:35:47 +08:00
Update code to v1.0.14 (10)
This commit is contained in:
19
android/extern/libvncserver/examples/server/filetransfer.c
vendored
Normal file
19
android/extern/libvncserver/examples/server/filetransfer.c
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @example filetransfer.c
|
||||
* Demonstrates a server capable of TightVNC-1.3.x file transfer.
|
||||
* NB That TightVNC-2.x uses a different, incompatible file transfer protocol.
|
||||
*/
|
||||
|
||||
#include <rfb/rfb.h>
|
||||
|
||||
int main(int argc,char** argv)
|
||||
{
|
||||
rfbRegisterTightVNCFileTransferExtension();
|
||||
rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,8,3,4);
|
||||
if(!server)
|
||||
return 1;
|
||||
server->frameBuffer=(char*)malloc(400*300*4);
|
||||
rfbInitServer(server);
|
||||
rfbRunEventLoop(server,-1,FALSE);
|
||||
return(0);
|
||||
}
|
||||
Reference in New Issue
Block a user