Navigation


Changeset 939:1bc052ef961f in freeDiameter for include


Ignore:
Timestamp:
Mar 12, 2013, 11:27:59 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Add a function to access this counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdcore.h

    r904 r939  
    385385int fd_peer_get_state(struct peer_hdr *peer);
    386386
     387/*
     388 * FUNCTION:    fd_peer_get_load_pending
     389 *
     390 * PARAMETERS:
     391 *  peer        : The peer which load to read
     392 *
     393 * DESCRIPTION:
     394 *   Returns the current number of requests sent to this peer
     395 *  that have not been answered yet. This is an empirical indication
     396 *  of the workload of this peer.
     397 *
     398 * RETURN VALUE:
     399 *  0  : The load parameter has been updated. (it should have a positive value always)
     400 * !0  : An error occurred
     401 */
     402int fd_peer_get_load_pending(struct peer_hdr *peer, int * load);
     403
    387404/*
    388405 * FUNCTION:    fd_peer_validate_register
Note: See TracChangeset for help on using the changeset viewer.