echo_server.c File Reference

#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

Go to the source code of this file.

Defines

#define PORT   54321
#define BUFSIZE   512

Functions

void sigint_handler ()
void accept_and_echo ()
 main ()

Variables

int sock = -1
int fd = -1


Define Documentation

#define BUFSIZE   512
 

Definition at line 20 of file echo_server.c.

Referenced by accept_and_echo(), and main().

#define PORT   54321
 

Definition at line 19 of file echo_server.c.

Referenced by main().


Function Documentation

void accept_and_echo  ) 
 

Definition at line 34 of file echo_server.c.

References BUFSIZE, fd, and sock.

Referenced by main().

main  ) 
 

Definition at line 75 of file echo_server.c.

References accept_and_echo(), PORT, sigint_handler(), and sock.

void sigint_handler  ) 
 

Definition at line 25 of file echo_server.c.

References fd, and sock.

Referenced by BattChecker::BattChecker(), and main().


Variable Documentation

int fd = -1
 

Definition at line 23 of file echo_server.c.

Referenced by __wrap_open(), accept_and_echo(), file_get_contents(), main(), and sigint_handler().

int sock = -1
 

Definition at line 22 of file echo_server.c.

Referenced by accept_and_echo(), connect_to_opensdk_actuator(), connect_to_usarsim(), main(), send_server(), send_usarsim(), and sigint_handler().


Generated on Sun Dec 2 23:04:31 2007 for openSDK by  doxygen 1.3.9.1