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

helper.c File Reference

stub demo helper server More...

#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include "def.h"
#include "berkeleyapi.h"
#include "errorcodes.h"
#include "natblaster_helper.h"

Go to the source code of this file.

Functions

int getArgs (int argc, char *argv[], port_t *helper_port)
 gets arguments from the command line
void printUse ()
 prints the program use
int main (int argc, char *argv[])
 stud entry point


Detailed Description

stub demo helper server

Author:
Daniel Ferullo (ferullo@cmu.edu)

Definition in file helper.c.


Function Documentation

int getArgs int  argc,
char *  argv[],
port_t helper_port
 

gets arguments from the command line

uses errorcodes.h for error codes

Parameters:
argc the number of arguments passed in
argv the vector of arguments
helper_port pointer to the helper's port (will be filled in)
Returns:
SUCCESS, errorcode on failure

Definition at line 87 of file helper.c.

int main int  argc,
char *  argv[]
 

stud entry point

Parameters:
argc the number of elements in the argument vector
argv the argument vector
Returns:
0 on success, neg on failure

Definition at line 61 of file helper.c.

References CHECK_FAILED, FAILED, getArgs(), natblaster_server(), port_t, and printUse().

void printUse  ) 
 

prints the program use

Returns:
void

Definition at line 78 of file helper.c.

Referenced by main().


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