Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

t_sockaddr_fcns.c File Reference


Detailed Description

For internal use only.

This test program is used to test the operation of the socket address manipulation functions.

Definition in file t_sockaddr_fcns.c.

#include "event-test.h"
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>

Include dependency graph for t_sockaddr_fcns.c:

Go to the source code of this file.

Functions

unsigned int value (const char *str)
 Translate a string into a value.
int main (int argc, char **argv)
 Socket address test program.


Function Documentation

int main int  argc,
char **  argv
 

For internal use only.

This program is used for testing the event library's socket address manipulation routines.

Definition at line 91 of file t_sockaddr_fcns.c.

References AT_IPv4, AT_IPv6, AT_LOCAL, AT_NONE, ev_prog_name, ev_test_init, prog, sa_ipaddrbuf, sa_ipaddrbuf_set(), sa_ipaddrport, sa_ipaddrport_set(), sa_localaddr, sa_localaddr_set(), sa_type, sa_type_set(), SOCK_ADDRBUFV4_LEN, SOCK_ADDRBUFV6_LEN, SOCK_LOCALADDR_LEN, sockaddr_atop(), sockaddr_export(), sockaddr_import(), sockaddr_ptoa(), and value().

Here is the call graph for this function:

unsigned int value const char *  str  ) 
 

For internal use only.

This function translates the given string into a numeric value.

Parameters:
[in] str The string to translate.
Returns:
The numeric value of the string.

Definition at line 56 of file t_sockaddr_fcns.c.

References AT_IPv4, AT_IPv6, AT_LOCAL, and AT_NONE.

Referenced by main().


Generated on Wed Dec 28 23:37:42 2005 for event by  doxygen 1.4.4