websSetRequestDocFd | GoAhead WebServer API | GoAhead EMF |
Return the document file handle for the current web page
#include "webs.h" int websSetRequestDocFd(webs_t wp, int fd);
wp | Web server connection handle |
fd | File handle to define |
The websSetRequestDocFd procedure defines a file handle from which to read the web page for this browser connection.
Returns -1 if there is no document handle defined. Otherwise the handle is returned.
fd = open("filename", mode, perm); websSetRequestDocFd(wp, fd);
websGetRequestBytes, websGetRequestDocFd, websSetRequestPath