Blame view

ext_dep/libvncserver/libvncserver-master/examples/simple.c 348 Bytes
8d728d065   신재종   add libvncserver ...
1
2
3
4
5
6
7
8
9
10
11
12
  #include <rfb/rfb.h>
  
  int main(int argc,char** argv)
  {                                                                
    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);
  }