Defines | Functions

libvncserver/httpd.c File Reference

#include <rfb/rfb.h>
#include <ctype.h>
#include <errno.h>
#include <pwd.h>
Include dependency graph for httpd.c:

Go to the source code of this file.

Defines

#define NOT_FOUND_STR
#define INVALID_REQUEST_STR
#define OK_STR   "HTTP/1.0 200 OK\r\nConnection: close\r\n\r\n"
#define OK_STR_HTML   "HTTP/1.0 200 OK\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n"
#define BUF_SIZE   32768

Functions

void rfbHttpInitSockets (rfbScreenInfoPtr rfbScreen)
void rfbHttpShutdownSockets (rfbScreenInfoPtr rfbScreen)
void rfbHttpCheckFds (rfbScreenInfoPtr rfbScreen)

Define Documentation

#define BUF_SIZE   32768

Definition at line 82 of file httpd.c.

#define INVALID_REQUEST_STR
Value:
"HTTP/1.0 400 Invalid Request\r\nConnection: close\r\n\r\n" \
    "<HEAD><TITLE>Invalid Request</TITLE></HEAD>\n" \
    "<BODY><H1>Invalid request</H1></BODY>\n"

Definition at line 68 of file httpd.c.

#define NOT_FOUND_STR
Value:
"HTTP/1.0 404 Not found\r\nConnection: close\r\n\r\n" \
    "<HEAD><TITLE>File Not Found</TITLE></HEAD>\n" \
    "<BODY><H1>File Not Found</H1></BODY>\n"

Definition at line 64 of file httpd.c.

#define OK_STR   "HTTP/1.0 200 OK\r\nConnection: close\r\n\r\n"

Definition at line 72 of file httpd.c.

#define OK_STR_HTML   "HTTP/1.0 200 OK\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n"

Definition at line 73 of file httpd.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines