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

helperfsm.h File Reference

contains fsm-like functions to control protocol control flow More...

#include "errorcodes.h"
#include "connlist.h"
#include "helperdef.h"

Go to the source code of this file.

Functions

errorcode helper_fsm_start (connlist_t *list, connlist_item_t *item)
 entry point for helper fsm


Detailed Description

contains fsm-like functions to control protocol control flow

Author:
Daniel Ferullo (ferullo@cmu.edu)

The convention in these functions is at function entry, receive the next message, then handle it, then send a message saying what happened, then call next function in fsm

Definition in file helperfsm.h.


Function Documentation

errorcode helper_fsm_start connlist_t list,
connlist_item_t item
 

entry point for helper fsm

Parameters:
list pointer to the list of connection data
item pointer to the connection information item
Returns:
SUCCESS, errorcode on failure

Definition at line 35 of file helperfsm.c.

References helper_conn_info::bday, helper_conn_info::buddy, helper_conn_info::buddy_syn, CHECK_FAILED, CHECK_NOT_NULL, connlist_add(), connlist_forget(), connlist_item_match(), connlist_item_t, connlist_t, DBG_LIST, DBG_PROTOCOL, DEBUG, ERROR_LIST_REMOVE_1, ERROR_LIST_REMOVE_2, ERROR_NULL_ARG_1, ERROR_NULL_ARG_2, errorcode, buddy_info::ext_ip, buddy_info::ext_port, port_alloc::ext_port, buddy_info::ext_port_set, port_alloc::ext_port_set, FAILED, helper_fsm_hello(), buddy_info::identifier, connlist_item::info, buddy_info::int_ip, buddy_info::int_port, peer_info::ip, port_alloc::method, port_alloc::method_set, helper_sock_desc::peer, helper_conn_info::peer, bday_helper::port, peer_info::port, helper_conn_info::port_alloc, bday_helper::port_set, bday_helper::seq_num, buddy_syn_seq_num::seq_num, bday_helper::seq_num_set, buddy_syn_seq_num::seq_num_set, peer_info::set, helper_conn_info::socks, bday_helper::status, and connlist_item::watchers.

Referenced by run_helper_fsm_thread().


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