|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|
Minimal HTTP/1.0 GET client that prints only the response body. More...
#include <errno.h>#include <netinet/in.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/socket.h>#include <unistd.h>
Classes | |
| struct | parsed_url_t |
Macros | |
| #define | WGET_REQ_BUF 512 |
| #define | WGET_IO_BUF 512 |
Functions | |
| static void | print_usage (const char *prog) |
| static int | write_all (int fd, const char *buf, size_t len) |
| static int | parse_port (const char *text) |
| static unsigned short | net_htons (unsigned short v) |
| static int | parse_ipv4 (const char *text, in_addr_t *addr_out) |
| static int | parse_url (const char *url, parsed_url_t *out) |
| int | main (int argc, char *argv[]) |
Minimal HTTP/1.0 GET client that prints only the response body.
| #define WGET_IO_BUF 512 |
| #define WGET_REQ_BUF 512 |
| int main | ( | int | argc, |
| char * | argv[] ) |

|
static |
|
static |
|
static |
|
static |


|
static |
|
static |
