Navigation


Changeset 229:965f5971dc23 in freeDiameter for freeDiameter/fD.h


Ignore:
Timestamp:
Mar 2, 2010, 3:55:26 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Broadcast CEA over all streams to avoid possible race condition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/fD.h

    r228 r229  
    240240const char * fd_pev_str(int event);
    241241
    242 /* The data structure for FDEVP_CNX_INCOMING events */
     242/* The data structure for FDEVP_CNX_INCOMING event */
    243243struct cnx_incoming {
    244244        struct msg      * cer;          /* the CER message received on this connection */
     
    274274
    275275/* Peer out */
    276 int fd_out_send(struct msg ** msg, struct cnxctx * cnx, struct fd_peer * peer);
     276int fd_out_send(struct msg ** msg, struct cnxctx * cnx, struct fd_peer * peer, uint32_t flags);
    277277int fd_out_start(struct fd_peer * peer);
    278278int fd_out_stop(struct fd_peer * peer);
     
    327327int             fd_cnx_receive(struct cnxctx * conn, struct timespec * timeout, unsigned char **buf, size_t * len);
    328328int             fd_cnx_recv_setaltfifo(struct cnxctx * conn, struct fifo * alt_fifo); /* send FDEVP_CNX_MSG_RECV event to the fifo list */
    329 int             fd_cnx_send(struct cnxctx * conn, unsigned char * buf, size_t len, int ordered);
     329int             fd_cnx_send(struct cnxctx * conn, unsigned char * buf, size_t len, uint32_t flags);
    330330void            fd_cnx_destroy(struct cnxctx * conn);
    331331
     332/* Flags for the fd_cnx_send function : */
     333#define FD_CNX_ORDERED          (1 << 0)        /* All messages sent with this flag set will be delivered in the same order. No guarantee on other messages */
     334#define FD_CNX_BROADCAST        (1 << 1)        /* The message is sent over all stream pairs, in case of SCTP. No effect on TCP */
    332335
    333336#endif /* _FD_H */
Note: See TracChangeset for help on using the changeset viewer.