Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

natblaster_helper.c File Reference

contains entrypoint for a helper into natblaster More...

#include "natblaster_helper.h"
#include "connlist.h"
#include "debug.h"
#include "errorcodes.h"
#include "berkeleyapi.h"
#include "nethelp.h"
#include "helpercon.h"

Go to the source code of this file.

Functions

int natblaster_server (port_t listen_port)
 the single function to start a helper application


Detailed Description

contains entrypoint for a helper into natblaster

Author:
Daniel Ferullo (ferullo@cmu.edu)

Definition in file natblaster_helper.c.


Function Documentation

int natblaster_server port_t  listen_port  ) 
 

the single function to start a helper application

Does not return on success!

Parameters:
listen_port the port to act as a thrid party server on
Returns:
Never returns on success, errorcode on failure.

Definition at line 34 of file natblaster_helper.c.

References bindSocket(), CHECK_FAILED, connlist_count(), connlist_init(), connlist_t, create_new_handler(), DBG_LIST, DBG_NETWORK, DEBUG, ERROR_1, ERROR_BIND, ERROR_INIT, observed_data::ip, observed_data_t, observed_data::port, and sock_t.

Referenced by main().


Generated on Wed Mar 30 23:20:48 2005 for NATBLASTER by  doxygen 1.3.9.1