|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|
UDP echo smoke test — sends a datagram to QEMU's built-in echo service (10.0.2.2:7) and prints the round-trip result. 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) |
UDP echo smoke test — sends a datagram to QEMU's built-in echo service (10.0.2.2:7) and prints the round-trip result.
| #define QEMU_GW_ADDR 0x0202000aU /* 10.0.2.2 in network byte order */ |
| int main | ( | void | ) |

|
inlinestatic |