|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|
TCP connect smoke test — connects to QEMU's echo service (10.0.2.2:7). More...
#include <stdio.h>#include <string.h>#include <sys/socket.h>#include <netinet/in.h>#include <unistd.h>
Macros | |
| #define | QEMU_GW_ADDR 0x0202000aU /* 10.0.2.2 in network byte order */ |
Functions | |
| static unsigned short | net_htons (unsigned short v) |
| int | main (void) |
TCP connect smoke test — connects to QEMU's echo service (10.0.2.2:7).
| #define QEMU_GW_ADDR 0x0202000aU /* 10.0.2.2 in network byte order */ |
| int main | ( | void | ) |

|
inlinestatic |