Files | |
file | echo.c |
Echo application. | |
Defines | |
#define | NAME "Echo" |
Echo module name. | |
Functions | |
void | echo_print_help (void) |
Prints the application help. | |
int | main (int argc, char *argv[]) |
Module entry point. |
#define NAME "Echo" |
Echo module name.
Referenced by main(), and module_print_name().
void echo_print_help | ( | void | ) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Module entry point.
Reads command line parameters and starts listenning.
[in] | argc | The number of command line parameters. |
[in] | argv | The command line parameters. |
Starts testing.
[in] | argc | The number of command line parameters. |
[in] | argv | The command line parameters. |
[in] | argc | The number of command line parameters. |
[in] | argv | The command line parameters. |
References accept(), AF_INET, AF_INET6, bind(), closesocket(), count, EAFNOSUPPORT, echo_print_help(), ERROR_CODE, ERROR_DECLARE, ERROR_OCCURRED, ERROR_PROPAGATE, htons, INET6_ADDRSTRLEN, inet_ntop(), listen(), NAME, ntohs, parse_parameter_int(), parse_parameter_name_int(), parse_parameter_string(), parse_protocol_family(), parse_socket_type(), PF_INET, PF_INET6, print_unrecognized(), recvfrom(), reply(), in6_addr::s6_addr, in_addr::s_addr, sockaddr::sa_family, sendto(), sockaddr_in6::sin6_addr, sockaddr_in6::sin6_family, sockaddr_in6::sin6_port, sockaddr_in::sin_addr, sockaddr_in::sin_family, sockaddr_in::sin_port, SOCK_DGRAM, SOCK_STREAM, socket(), and socket_print_error().