Navigation


Changeset 43:2db15632a63d in freeDiameter for freeDiameter/fD.h


Ignore:
Timestamp:
Nov 25, 2009, 7:07:09 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added a large part of connection establishment logic, to test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/fD.h

    r40 r43  
    6767#endif /* DPR_TIMEOUT */
    6868
     69/* The Vendor-Id to advertise in CER/CEA */
     70#ifndef MY_VENDOR_ID
     71#define MY_VENDOR_ID    0       /* Reserved value to tell it must be ignored */
     72#endif /* MY_VENDOR_ID */
     73
     74
     75
    6976/* Configuration */
    7077int fd_conf_init();
     
    145152        /* Data for transitional states before the peer is in OPEN state */
    146153        struct {
    147                 struct cnxctx * p_initiator;    /* Connection before CEA is received */
    148154                struct cnxctx * p_receiver;     /* Only used in case of election */
    149                 pthread_t       p_ini_thr;
     155                struct msg    * p_cer;          /* Only used in case of election */
     156               
     157                pthread_t       p_ini_thr;      /* Initiator thread for establishing a connection */
    150158                struct fd_list  p_connparams;   /* The list of connection attempts, see p_cnx.c */
    151159        };
     
    265273int fd_p_ce_handle_newCER(struct msg ** msg, struct fd_peer * peer, struct cnxctx ** cnx, int valid);
    266274int fd_p_ce_handle_newcnx(struct fd_peer * peer, struct cnxctx * initiator);
    267 int fd_p_ce_winelection(struct fd_peer * peer);
     275int fd_p_ce_process_receiver(struct fd_peer * peer);
     276void fd_p_ce_clear_cnx(struct fd_peer * peer, struct cnxctx ** cnx_kept);
    268277int fd_p_dw_handle(struct msg ** msg, int req, struct fd_peer * peer);
    269278int fd_p_dw_timeout(struct fd_peer * peer);
     279int fd_p_dw_reopen(struct fd_peer * peer);
    270280int fd_p_dp_handle(struct msg ** msg, int req, struct fd_peer * peer);
    271281int fd_p_dp_initiate(struct fd_peer * peer);
Note: See TracChangeset for help on using the changeset viewer.