BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB Reference

sock_qos.h
Go to the documentation of this file.
1 /* $Id: sock_qos.h 3553 2011-05-05 06:14:19Z nanang $ */
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 
233 typedef enum pj_qos_type
234 {
242 } pj_qos_type;
243 
248 typedef enum pj_qos_flag
249 {
253 } pj_qos_flag;
254 
255 
259 typedef enum pj_qos_wmm_prio
260 {
266 
267 
271 typedef struct pj_qos_params
272 {
278 } pj_qos_params;
279 
280 
281 
294  pj_qos_type type);
295 
309  pj_qos_type *p_type);
310 
311 
337  pj_qos_type qos_type,
338  pj_qos_params *qos_params,
339  unsigned log_level,
340  const char *log_sender,
341  const char *sock_name);
342 
350  pj_qos_type qos_type,
351  const pj_qos_params *qos_params,
352  unsigned log_level,
353  const char *log_sender,
354  const char *sock_name);
355 
367  pj_qos_params *p_param);
368 
369 
382 PJ_DECL(pj_status_t) pj_qos_get_type(const pj_qos_params *param,
383  pj_qos_type *p_type);
384 
385 
401  pj_qos_params *param);
402 
416  pj_qos_params *p_param);
417 
418 
425 
426 #endif /* __PJ_SOCK_QOS_H__ */
427 
pj_uint8_t so_prio
Definition: sock_qos.h:276
Definition: sock_qos.h:239
Definition: sock_qos.h:241
pj_status_t pj_qos_get_params(pj_qos_type type, pj_qos_params *p_param)
Definition: sock_qos.h:263
pj_status_t pj_sock_set_qos_type(pj_sock_t sock, pj_qos_type type)
Definition: sock_qos.h:238
Definition: sock_qos.h:240
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:248
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:235
Definition: sock_qos.h:261
pj_uint8_t dscp_val
Definition: sock_qos.h:275
#define PJ_END_DECL
Definition: config.h:1067
#define PJ_BEGIN_DECL
Definition: config.h:1066
pj_qos_wmm_prio
Definition: sock_qos.h:259
pj_qos_type
Definition: sock_qos.h:233
long pj_sock_t
Definition: types.h:263
Definition: sock_qos.h:252
pj_uint8_t flags
Definition: sock_qos.h:273
unsigned char pj_uint8_t
Definition: types.h:55
Definition: sock_qos.h:251
Socket Abstraction.
Definition: sock_qos.h:262
pj_qos_wmm_prio wmm_prio
Definition: sock_qos.h:277
pj_status_t pj_qos_get_type(const pj_qos_params *param, pj_qos_type *p_type)
Definition: sock_qos.h:271
Definition: sock_qos.h:264
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:250
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.