Navigation



Ignore:
Timestamp:
Dec 3, 2009, 2:59:23 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added new function to retrieve messages sessions easily

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfreeDiameter.h

    r83 r85  
    14731473 *
    14741474 * DESCRIPTION:
    1475  *   Retrieve a session object from a Session-Id string. Calling this function makes an implicit call to the
    1476  *  fd_sess_link function on the returned session. In case no session object was previously existing with this
     1475 *   Retrieve a session object from a Session-Id string. In case no session object was previously existing with this
    14771476 *  id, a new object is silently created (equivalent to fd_sess_new with flag SESSION_NEW_FULL).
    14781477 *
     
    16481647int  fd_rtd_candidate_reorder(struct fd_list * candidates);
    16491648
     1649/* Note : it is fine for a callback to add a new entry in the candidates list after the list has been extracted. The diamid must then be malloc'd. */
     1650/* Beware that this could lead to routing loops */
    16501651
    16511652/*============================================================*/
     
    20522053
    20532054
     2055/*
     2056 * FUNCTION:    fd_msg_sess_get
     2057 *
     2058 * PARAMETERS:
     2059 *  dict        : the dictionary that contains the Session-Id AVP definition
     2060 *  msg         : A valid message.
     2061 *  session     : Location to store the session pointer when retrieved.
     2062 *  new         : Indicates if the session has been created.
     2063 *
     2064 * DESCRIPTION:
     2065 *  This function retrieves or creates the session object corresponding to a message.
     2066 * If the message does not contain a Session-Id AVP, *session == NULL on return.
     2067 * Note that the Session-Id AVP must never be modified after created in a message.
     2068 *
     2069 * RETURN VALUE:
     2070 *  0 : success
     2071 * !0 : standard error code.
     2072 */
     2073int fd_msg_sess_get(struct dictionary * dict, struct msg * msg, struct session ** session, int * new);
     2074
    20542075/***************************************/
    20552076/*   Manage AVP values                 */
Note: See TracChangeset for help on using the changeset viewer.