| |
| | [No title] |
 | | static ccp skip_space(ccp, ccp); static std::string receive(int inf, resource &, unsigned = 0); static std::string read_request(int, resource &); static std::string get_uri(ccp, unsigned); static bool request_complete(ccp, size_t); static std::string do_options(int argc, char * argv[]) { // Figure out the command-line options, of which there should be only one. |
 | | -1) write(skt, msg.data, msg.size); delete [] msg.data; return skt; } static ccp find_space(ccp start, ccp end) { // Return a pointer to the first (leftmost) space character in the interval // [start, end); return a pointer to end if no such space character exists. |
 | | = 0; i--) { if (not memcmp(msg + i, "\r\n\r\n", 4)) return true; if (not memcmp(msg + i, "\n\n", 2)) return true; } return false; } static ccp skip_space(ccp s, ccp e) { // Advance s until it points to a non-space character or it's equal to e. |
| bluehawk.monmouth.edu /rclayton/web-pages/f03-305/main.cc (301 words) |
|