Navigation


Changeset 28:3628f7d2ba88 in freeDiameter for freeDiameter/fD.h


Ignore:
Timestamp:
Oct 26, 2009, 6:07:24 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

some new functions backbones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/fD.h

    r25 r28  
    157157        ,FDEVP_TERMINATE
    158158       
    159         /* A connection object has received a message. */
     159        /* A connection object has received a message. (data contains the buffer) */
    160160        ,FDEVP_CNX_MSG_RECV
    161161                         
     
    166166        ,FDEVP_CNX_EP_CHANGE
    167167       
    168         /* A message was received in the peer */
    169         ,FDEVP_MSG_INCOMING
     168        /* A new connection has been established (data contains the appropriate info) */
     169        ,FDEVP_CNX_INCOMING
    170170       
    171171        /* The PSM state is expired */
     
    185185
    186186/* Functions */
    187 int fd_peer_fini();
     187int  fd_peer_fini();
    188188void fd_peer_dump_list(int details);
    189189void fd_peer_dump(struct fd_peer * peer, int details);
    190 int fd_peer_alloc(struct fd_peer ** ptr);
    191 int fd_peer_free(struct fd_peer ** ptr);
     190int  fd_peer_alloc(struct fd_peer ** ptr);
     191int  fd_peer_free(struct fd_peer ** ptr);
     192int fd_peer_handle_newCER( struct msg ** cer, struct cnxctx ** cnx, int tls_done );
    192193/* fd_peer_add declared in freeDiameter.h */
    193194
     
    198199
    199200/* Peer state machine */
    200 int fd_psm_start();
    201 int fd_psm_begin(struct fd_peer * peer );
    202 int fd_psm_terminate(struct fd_peer * peer );
     201int  fd_psm_start();
     202int  fd_psm_begin(struct fd_peer * peer );
     203int  fd_psm_terminate(struct fd_peer * peer );
    203204void fd_psm_abord(struct fd_peer * peer );
    204205
    205206/* Server sockets */
    206207void fd_servers_dump();
    207 int fd_servers_start();
    208 int fd_servers_stop();
    209 
    210 /* Connection contexts */
     208int  fd_servers_start();
     209int  fd_servers_stop();
     210
     211/* Connection contexts -- there are also definitions in cnxctx.h for the relevant files */
    211212struct cnxctx * fd_cnx_serv_tcp(uint16_t port, int family, struct fd_endpoint * ep);
    212213struct cnxctx * fd_cnx_serv_sctp(uint16_t port, struct fd_list * ep_list);
    213 int fd_cnx_serv_listen(struct cnxctx * conn);
     214int             fd_cnx_serv_listen(struct cnxctx * conn);
    214215struct cnxctx * fd_cnx_serv_accept(struct cnxctx * serv);
    215216struct cnxctx * fd_cnx_cli_connect_tcp(sSA * sa, socklen_t addrlen);
    216217struct cnxctx * fd_cnx_cli_connect_sctp(int no_ip6, uint16_t port, struct fd_list * list);
    217 char * fd_cnx_getid(struct cnxctx * conn);
    218 int fd_cnx_start_clear(struct cnxctx * conn, int loop);
    219 int fd_cnx_handshake(struct cnxctx * conn, int mode, char * priority);
    220 int fd_cnx_getcred(struct cnxctx * conn, const gnutls_datum_t **cert_list, unsigned int *cert_list_size);
    221 int fd_cnx_getendpoints(struct cnxctx * conn, struct fd_list * local, struct fd_list * remote);
    222 char * fd_cnx_getremoteid(struct cnxctx * conn);
    223 int fd_cnx_receive(struct cnxctx * conn, struct timespec * timeout, unsigned char **buf, size_t * len);
    224 int fd_cnx_recv_setaltfifo(struct cnxctx * conn, struct fifo * alt_fifo); /* send FDEVP_CNX_MSG_RECV event to the fifo list */
    225 int fd_cnx_send(struct cnxctx * conn, unsigned char * buf, size_t len);
    226 void fd_cnx_destroy(struct cnxctx * conn);
     218char *          fd_cnx_getid(struct cnxctx * conn);
     219int             fd_cnx_start_clear(struct cnxctx * conn, int loop);
     220int             fd_cnx_handshake(struct cnxctx * conn, int mode, char * priority);
     221int             fd_cnx_getcred(struct cnxctx * conn, const gnutls_datum_t **cert_list, unsigned int *cert_list_size);
     222int             fd_cnx_getendpoints(struct cnxctx * conn, struct fd_list * local, struct fd_list * remote);
     223char *          fd_cnx_getremoteid(struct cnxctx * conn);
     224int             fd_cnx_receive(struct cnxctx * conn, struct timespec * timeout, unsigned char **buf, size_t * len);
     225int             fd_cnx_recv_setaltfifo(struct cnxctx * conn, struct fifo * alt_fifo); /* send FDEVP_CNX_MSG_RECV event to the fifo list */
     226int             fd_cnx_send(struct cnxctx * conn, unsigned char * buf, size_t len);
     227void            fd_cnx_destroy(struct cnxctx * conn);
    227228
    228229
Note: See TracChangeset for help on using the changeset viewer.