"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/modules/rtpengine/rtpengine.h" (16 Apr 2019, 1776 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "rtpengine.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) 2003 Porta Software Ltd
    3  *
    4  * This file is part of opensips, a free SIP server.
    5  *
    6  * opensips is free software; you can redistribute it and/or modify
    7  * it under the terms of the GNU General Public License as published by
    8  * the Free Software Foundation; either version 2 of the License, or
    9  * (at your option) any later version
   10  *
   11  * opensips is distributed in the hope that it will be useful,
   12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  * GNU General Public License for more details.
   15  *
   16  * You should have received a copy of the GNU General Public License
   17  * along with this program; if not, write to the Free Software
   18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
   19  *
   20  * History:
   21  * ---------
   22  * 2014-06-17 Imported from rtpproxy module
   23 */
   24 
   25 
   26 #ifndef _RTPENGINE_H
   27 #define _RTPENGINE_H
   28 
   29 #include "bencode.h"
   30 #include "../../str.h"
   31 
   32 struct rtpe_node {
   33     unsigned int        idx;            /* overall index */
   34     str                 rn_url;         /* unparsed, deletable */
   35     int                 rn_umode;
   36     char                *rn_address;    /* substring of rn_url */
   37     int                 rn_disabled;    /* found unaccessible? */
   38     unsigned            rn_weight;      /* for load balancing */
   39     unsigned int        rn_recheck_ticks;
   40     int                     rn_rep_supported;
   41     int                     rn_ptl_supported;
   42     struct rtpe_node    *rn_next;
   43 };
   44 
   45 
   46 struct rtpe_set{
   47     unsigned int        id_set;
   48     unsigned            weight_sum;
   49     unsigned int        rtpe_node_count;
   50     int                 set_disabled;
   51     unsigned int        set_recheck_ticks;
   52     struct rtpe_node    *rn_first;
   53     struct rtpe_node    *rn_last;
   54     struct rtpe_set     *rset_next;
   55 };
   56 
   57 
   58 struct rtpe_set_head{
   59     struct rtpe_set     *rset_first;
   60     struct rtpe_set     *rset_last;
   61 };
   62 
   63 #define RTPENGINE_TABLE_VERSION 1
   64 
   65 #endif