1#include <rfb/rfb.h>
2
3int main(int argc,char** argv)
4{
5  rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,8,3,4);
6  if(!server)
7    return 0;
8  server->frameBuffer=(char*)malloc(400*300*4);
9  rfbInitServer(server);
10  rfbRunEventLoop(server,-1,FALSE);
11  return(0);
12}
13