Netecho


Files

file  netecho.c
 Network echo server.

Defines

#define NAME   "netecho"

Functions

static void echo_print_help (void)
int main (int argc, char *argv[])
static int netecho_parse_option (int argc, char *argv[], int *index)
static int netecho_socket_process_message (int listening_id)
 Echo one message (accept one connection and echo message).

Variables

static int backlog = 3
static int count = -1
static char * data
static int family = PF_INET
static uint16_t port = 7
static char * reply = NULL
static size_t reply_length
static size_t size = 1024
static sock_type_t type = SOCK_DGRAM
static int verbose = 0

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 317 of file netecho.c.

static int netecho_socket_process_message ( int  listening_id  )  [static]

Echo one message (accept one connection and echo message).

Parameters:
listening_id Listening socket.
Returns:
EOK on success or negative error code.

Definition at line 223 of file netecho.c.


Generated on Thu Jun 2 07:45:57 2011 for HelenOS/USB by  doxygen 1.4.7