Navigation


Changeset 22:0b3b46da2c12 in freeDiameter for include


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

Progress on server code

Location:
include/freeDiameter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/freeDiameter.h

    r20 r22  
    256256        /* Additional parameters */
    257257        uint32_t        pi_lft;         /* lifetime of this peer when inactive (see pi_flags.exp definition) */
    258         uint16_t        pi_streams;     /* number of streams for SCTP. 0 = default */
    259258        uint16_t        pi_port;        /* port to connect to. 0: default. */
    260259        int             pi_tctimer;     /* use this value for TcTimer instead of global, if != 0 */
     
    271270        struct fd_list  pi_apps;        /* applications advertised by the remote peer, except relay (pi_flags.relay) */
    272271        struct {
     272                char                    *priority;      /* In case the default priority is not appropriate */
    273273                /* This is inspired from http://www.gnu.org/software/gnutls/manual/gnutls.html#ex_003ax509_002dinfo */
    274274                const gnutls_datum_t    *cert_list;     /* The (valid) credentials that the peer has presented */
  • include/freeDiameter/libfreeDiameter.h

    r20 r22  
    120120 *
    121121 * PARAMETERS:
     122 *  ts          : The timestamp to log, or NULL for "now"
    122123 *  buf         : An array where the time must be stored
    123124 *  len         : size of the buffer
    124125 *
    125126 * DESCRIPTION:
    126  *  Writes the current timestamp (in human readable format) in a buffer.
     127 *  Writes the timestamp (in human readable format) in a buffer.
    127128 *
    128129 * RETURN VALUE:
    129130 *  pointer to buf.
    130131 */
    131 char * fd_log_time ( char * buf, size_t len );
     132char * fd_log_time ( struct timespec * ts, char * buf, size_t len );
    132133
    133134
     
    173174                fd_log_debug("\t | tid:%-20s\t%s\tin %s@%s:%d\n"                                                                \
    174175                          "\t%s|%*s" format "\n",                                                                               \
    175                                         __thn, fd_log_time(__buf, sizeof(__buf)), __PRETTY_FUNCTION__, __FILE__, __LINE__,      \
     176                                        __thn, fd_log_time(NULL, __buf, sizeof(__buf)), __PRETTY_FUNCTION__, __FILE__, __LINE__,        \
    176177                                        (level < FULL)?"@":" ",level, "", ## args);                                             \
    177178        }                                                                                                                       \
Note: See TracChangeset for help on using the changeset viewer.