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

peerfsm.h File Reference

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

#include "errorcodes.h"
#include "peerdef.h"

Go to the source code of this file.

Functions

errorcode peer_fsm_start (peer_conn_info_t *info)
 entry point for a peer 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 peerfsm.h.


Function Documentation

errorcode peer_fsm_start peer_conn_info_t info  ) 
 

entry point for a peer fsm

Parameters:
info a pointer to the conn_info_t struct with all the info
Returns:
SUCCESS, errorcode on failure

Definition at line 43 of file peerfsm.c.

References CHECK_FAILED, CHECK_NOT_NULL, DBG_TIME, ERROR_CALLED_FUNCTION, ERROR_NULL_ARG_1, ERROR_TCP_CONNECT, errorcode, peer_sock_desc::helper, peer_conn_info::helper, helper_info::ip, peer_conn_info_t, peer_fsm_hello(), helper_info::port, peer_conn_info::socks, and tcp_connect().

Referenced by natblaster_connect().


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