rtsp_parse_transport.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 63 行
H
63 行
/*******************************************************************
*
* Copyright C 2004 by Amlogic, Inc. All Rights Reserved.
*
* Description: RTSP Transport header declarations
*
* Author: Eric Knudstrup
* Created: Wed Dec 29 11:54:46 2004
*
*******************************************************************/
#ifndef RTSP_PARSE_TRANSPORT_H
#define RTSP_PARSE_TRANSPORT_H
#define TRANSPORT_FLAG_UNICAST (1<<0) /* ;unicast; */
#define TRANSPORT_FLAG_INTERLEAVED (1<<1) /* interleaved=x */
#define TRANSPORT_FLAG_MULTICAST (1<<2) /* ;multicast; */
typedef struct _transport_info_s {
struct _transport_info_s *trans_next; /* There can be more than one */
char *trans_protocol;
char *trans_destination;
char *trans_mode;
u32_t trans_flags;
u16_t trans_port_base; /* RTP */
u16_t trans_port_max; /* RTP */
u16_t trans_client_base; /* RTP */
u16_t trans_client_max; /* RTP */
u16_t trans_server_base; /* RTP */
u16_t trans_server_max; /* RTP */
u16_t trans_interleaved_base; /* First channel */
u16_t trans_interleaved_max; /* Channel count */
u32_t trans_ssrc;
u8_t trans_layers;
u8_t trans_ttl;
u8_t trans_channel;
} RTSPTransportInfo_t;
/*;emacs generated header for file rtsp_parse_transport.c. Global function declarations only. */
/* Retrieve the transport data */
extern RTSPTransportInfo_t *
rtsp_transport_info(HTTPInputMessage_t * response);
extern void
rtsp_transport_free(HTTPFieldValue *field);
/* By the time we've gotten here the header - "Transport" and the
* separator token - ":" have been eaten. So, just go through the
* buffer until end of line is reached tokenizing and parsing fields
* Transport: RTP/AVP;unicast;destination=192.168.0.2;client_port=0-1;server_port=35728-35729
*/
extern HTTPParseStatus
rtsp_parse_transport(HTTPParser *parser, HTTPFieldValue *base);
extern HTTPParseStatus
rtsp_parse_init_transport(HTTPParser *parser, HTTPFieldParser *hdr_parser);
/*;end emacs generated header for file rtsp_parse_transport.c. Global function declarations only. */
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?