websGetRequestDocFd | GoAhead WebServer API | GoAhead EMF |
Return the document file handle for the current web page
#include "webs.h" int websGetRequestDocFd(webs_t wp);
wp | Web server connection handle. |
The websGetRequestDocFd procedure returns the web page file handle defined for this browser connection. This is only defined if a URL Handler has set the handle via websSetDocFd.
Returns -1 if there is no document handle defined. Otherwise the handle is returned.
fd = websGetRequestDocFd(wp); read(fd, buf, sizeof(buf);
websGetRequestBytes, websSetRequestPath, websSetRequestDocFd