BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB Reference

sock_qos.h
Go to the documentation of this file.
1 /* $Id: sock_qos.h 5445 2016-10-05 09:52:39Z riza $ */
2 /*
3  * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
4  * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
5  *
6  * This program 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  * This program 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 #ifndef __PJ_SOCK_QOS_H__
21 #define __PJ_SOCK_QOS_H__
22 
28 #include <pj/sock.h>
29 
31 
32 
235 typedef enum pj_qos_type
236 {
245 } pj_qos_type;
246 
251 typedef enum pj_qos_flag
252 {
256 } pj_qos_flag;
257 
258 
262 typedef enum pj_qos_wmm_prio
263 {
269 
270 
274 typedef struct pj_qos_params
275 {
281 } pj_qos_params;
282 
283 
284 
297  pj_qos_type type);
298 
312  pj_qos_type *p_type);
313 
314 
340  pj_qos_type qos_type,
341  pj_qos_params *qos_params,
342  unsigned log_level,
343  const char *log_sender,
344  const char *sock_name);
345 
353  pj_qos_type qos_type,
354  const pj_qos_params *qos_params,
355  unsigned log_level,
356  const char *log_sender,
357  const char *sock_name);
358 
370  pj_qos_params *p_param);
371 
372 
385 PJ_DECL(pj_status_t) pj_qos_get_type(const pj_qos_params *param,
386  pj_qos_type *p_type);
387 
388 
404  pj_qos_params *param);
405 
419  pj_qos_params *p_param);
420 
421 
428 
429 #endif /* __PJ_SOCK_QOS_H__ */
430 
pj_uint8_t so_prio
Definition: sock_qos.h:279
Definition: sock_qos.h:244
Definition: sock_qos.h:241
Definition: sock_qos.h:243
pj_status_t pj_qos_get_params(pj_qos_type type, pj_qos_params *p_param)
Definition: sock_qos.h:266
pj_status_t pj_sock_set_qos_type(pj_sock_t sock, pj_qos_type type)
Definition: sock_qos.h:240
Definition: sock_qos.h:242
pj_status_t pj_sock_get_qos_params(pj_sock_t sock, pj_qos_params *p_param)
int pj_status_t
Definition: types.h:68
pj_qos_flag
Definition: sock_qos.h:251
pj_status_t pj_sock_set_qos_params(pj_sock_t sock, pj_qos_params *param)
pj_status_t pj_sock_get_qos_type(pj_sock_t sock, pj_qos_type *p_type)
Definition: sock_qos.h:237
Definition: sock_qos.h:264
pj_uint8_t dscp_val
Definition: sock_qos.h:278
#define PJ_END_DECL
Definition: config.h:1139
#define PJ_BEGIN_DECL
Definition: config.h:1138
pj_qos_wmm_prio
Definition: sock_qos.h:262
pj_qos_type
Definition: sock_qos.h:235
long pj_sock_t
Definition: types.h:263
Definition: sock_qos.h:255
pj_uint8_t flags
Definition: sock_qos.h:276
unsigned char pj_uint8_t
Definition: types.h:55
Definition: sock_qos.h:254
Socket Abstraction.
Definition: sock_qos.h:265
pj_qos_wmm_prio wmm_prio
Definition: sock_qos.h:280
pj_status_t pj_qos_get_type(const pj_qos_params *param, pj_qos_type *p_type)
Definition: sock_qos.h:274
Definition: sock_qos.h:267
pj_status_t pj_sock_apply_qos2(pj_sock_t sock, pj_qos_type qos_type, const pj_qos_params *qos_params, unsigned log_level, const char *log_sender, const char *sock_name)
Definition: sock_qos.h:253
pj_status_t pj_sock_apply_qos(pj_sock_t sock, pj_qos_type qos_type, pj_qos_params *qos_params, unsigned log_level, const char *log_sender, const char *sock_name)

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.