32 if(bpp!=4 && bpp!=2) {
37 f=fopen(
"framebuffer.ppm",
"wb");
51 v=*(
unsigned short*)p;
63 return strdup(
"testuser@test");
68 return strdup(
"Password");
72 main(
int argc,
char **argv)
77 #ifdef LIBVNCSERVER_HAVE_SASL
82 if(argc>1 && !strcmp(
"-print",argv[1])) {
84 argv[1]=argv[0]; argv++; argc--;
102 while (time(NULL)-t<5) {
104 fprintf(stderr,
"\r%d",i++);
rfbClient * rfbGetClient(int bitsPerSample, int samplesPerPixel, int bytesPerPixel)
Allocates and returns a pointer to an rfbClient structure.
int WaitForMessage(rfbClient *client, unsigned int usecs)
Waits for an RFB message to arrive from the server.
rfbClientLogProc rfbClientLog
void rfbClientCleanup(rfbClient *client)
Cleans up the client structure and releases the memory allocated for it.
rfbBool HandleRFBServerMessage(rfbClient *client)
Handles messages from the RFB server.
rfbBool rfbInitClient(rfbClient *client, int *argc, char **argv)
Initializes the client.
rfbClientLogProc rfbClientErr
int main(int argc, char **argv)
char * getpassword(rfbClient *client)
char * getuser(rfbClient *client)
GotFrameBufferUpdateProc GotFrameBufferUpdate
GetPasswordProc GetPassword
the pointer returned by GetPassword will be freed after use!