BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB Reference

sock_qos.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
3 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19#ifndef __PJ_SOCK_QOS_H__
20#define __PJ_SOCK_QOS_H__
21
27#include <pj/sock.h>
28
30
31
234typedef enum pj_qos_type
235{
245
250typedef enum pj_qos_flag
251{
256
257
261typedef enum pj_qos_wmm_prio
262{
268
269
273typedef struct pj_qos_params
274{
281
282
283
296 pj_qos_type type);
297
311 pj_qos_type *p_type);
312
313
339 pj_qos_type qos_type,
340 pj_qos_params *qos_params,
341 unsigned log_level,
342 const char *log_sender,
343 const char *sock_name);
344
352 pj_qos_type qos_type,
353 const pj_qos_params *qos_params,
354 unsigned log_level,
355 const char *log_sender,
356 const char *sock_name);
357
369 pj_qos_params *p_param);
370
371
385 pj_qos_type *p_type);
386
387
403 pj_qos_params *param);
404
418 pj_qos_params *p_param);
419
420
427
428#endif /* __PJ_SOCK_QOS_H__ */
429
unsigned char pj_uint8_t
Definition: types.h:55
long pj_sock_t
Definition: types.h:263
int pj_status_t
Definition: types.h:68
#define PJ_BEGIN_DECL
Definition: config.h:1284
#define PJ_END_DECL
Definition: config.h:1285
pj_status_t pj_sock_set_qos_params(pj_sock_t sock, pj_qos_params *param)
pj_status_t pj_qos_get_params(pj_qos_type type, pj_qos_params *p_param)
pj_qos_flag
Definition: sock_qos.h:251
pj_qos_type
Definition: sock_qos.h:235
pj_qos_wmm_prio
Definition: sock_qos.h:262
pj_status_t pj_qos_get_type(const pj_qos_params *param, pj_qos_type *p_type)
pj_status_t pj_sock_set_qos_type(pj_sock_t sock, pj_qos_type type)
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)
pj_status_t pj_sock_get_qos_params(pj_sock_t sock, pj_qos_params *p_param)
pj_status_t pj_sock_get_qos_type(pj_sock_t sock, pj_qos_type *p_type)
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)
@ PJ_QOS_PARAM_HAS_SO_PRIO
Definition: sock_qos.h:253
@ PJ_QOS_PARAM_HAS_DSCP
Definition: sock_qos.h:252
@ PJ_QOS_PARAM_HAS_WMM
Definition: sock_qos.h:254
@ PJ_QOS_TYPE_CONTROL
Definition: sock_qos.h:242
@ PJ_QOS_TYPE_BEST_EFFORT
Definition: sock_qos.h:236
@ PJ_QOS_TYPE_VOICE
Definition: sock_qos.h:241
@ PJ_QOS_TYPE_VIDEO
Definition: sock_qos.h:240
@ PJ_QOS_TYPE_SIGNALLING
Definition: sock_qos.h:243
@ PJ_QOS_TYPE_BACKGROUND
Definition: sock_qos.h:239
@ PJ_QOS_WMM_PRIO_BULK
Definition: sock_qos.h:264
@ PJ_QOS_WMM_PRIO_BULK_EFFORT
Definition: sock_qos.h:263
@ PJ_QOS_WMM_PRIO_VIDEO
Definition: sock_qos.h:265
@ PJ_QOS_WMM_PRIO_VOICE
Definition: sock_qos.h:266
Socket Abstraction.
Definition: sock_qos.h:274
pj_uint8_t flags
Definition: sock_qos.h:275
pj_qos_wmm_prio wmm_prio
Definition: sock_qos.h:279
pj_uint8_t so_prio
Definition: sock_qos.h:278
pj_uint8_t dscp_val
Definition: sock_qos.h:277

 


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