Networking test support functions implementation. More...
#include <stdio.h>
#include "../include/socket.h"
#include "../err.h"
#include "nettest.h"
#include "print_error.h"
Functions | |
int | sockets_create (int verbose, int *socket_ids, int sockets, int family, sock_type_t type) |
Creates new sockets. | |
int | sockets_close (int verbose, int *socket_ids, int sockets) |
Closes sockets. | |
int | sockets_connect (int verbose, int *socket_ids, int sockets, struct sockaddr *address, socklen_t addrlen) |
Connects sockets. | |
int | sockets_sendto (int verbose, int *socket_ids, int sockets, struct sockaddr *address, socklen_t addrlen, char *data, int size, int messages) |
Sends data via sockets. | |
int | sockets_recvfrom (int verbose, int *socket_ids, int sockets, struct sockaddr *address, socklen_t *addrlen, char *data, int size, int messages) |
Receives data via sockets. | |
int | sockets_sendto_recvfrom (int verbose, int *socket_ids, int sockets, struct sockaddr *address, socklen_t *addrlen, char *data, int size, int messages) |
Sends and receives data via sockets. | |
void | print_mark (int index) |
Prints a mark. |
Networking test support functions implementation.