#include "nettest.h"
#include "print_error.h"
#include <malloc.h>
#include <stdio.h>
#include <str.h>
#include <task.h>
#include <time.h>
#include <arg_parse.h>
#include <net/in.h>
#include <net/in6.h>
#include <net/inet.h>
#include <net/socket.h>
#include <net/socket_parse.h>
Go to the source code of this file.
Defines | |
| #define | NAME "Nettest1" |
| Echo module name. | |
| #define | NETTEST1_TEXT "Networking test 1 - sockets" |
| Packet data pattern. | |
Functions | |
| int | main (int argc, char *argv[]) |
| static void | nettest1_fill_buffer (char *buffer, size_t size) |
| Fill buffer with the NETTEST1_TEXT pattern. | |
| static int | nettest1_parse_opt (int argc, char *argv[], int *index) |
| Parse one command-line option. | |
| static void | nettest1_print_help (void) |
| static int | nettest1_test (int *socket_ids, int nsockets, int nmessages) |
Variables | |
| static struct sockaddr * | address |
| static socklen_t | addrlen |
| static char * | data |
| static int | family = PF_INET |
| static int | messages |
| static uint16_t | port |
| static size_t | size = 27 |
| static int | sockets |
| static sock_type_t | type = SOCK_DGRAM |
| static int | verbose = 0 |
Definition in file nettest1.c.
1.4.7