📄 rtsp_client.h
字号:
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is MPEG4IP.
*
* The Initial Developer of the Original Code is Cisco Systems Inc.
* Portions created by Cisco Systems Inc. are
* Copyright (C) Cisco Systems Inc. 2000, 2001. All Rights Reserved.
*
* Contributor(s):
* Bill May wmay@cisco.com
*/
/*
* rtsp_client.h - API for generic RTSP client
*/
#ifndef __RTSP_CLIENT_H__
#define __RTSP_CLIENT_H__ 1
#include <string.h> /* for string manipulation */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include "sdp.h"
typedef struct rtsp_command_{
char *accept;
char *accept_encoding;
char *accept_language;
char *authorization;
uint32_t bandwidth;
uint32_t blocksize;
char *cachecontrol;
char *conference;
char *connection;
char *from;
char *proxyauth;
char *proxyrequire;
char *range;
char *referer;
double scale;
char *session;
double speed;
char *transport;
char *useragent;
char *User;
} rtsp_command_t;
typedef struct rtsp_decode_ {
uint32_t content_length;
uint32_t cseq;
int close_connection;
char retcode[4]; /* 3 byte return code - \0 delimited */
char *retresp;
char *body; /* Contains body returned */
char *accept;
char *accept_encoding;
char *accept_language;
char *allow_public;
char *authorization;
char *bandwidth;
char *blocksize;
char *cache_control;
char *content_base;
char *content_encoding;
char *content_language;
char *content_location;
char *content_type;
char *cookie;
char *date;
char *expires;
char *from;
char *if_modified_since;
char *last_modified;
char *location;
char *proxy_authenticate;
char *proxy_require;
char *range;
char *referer;
char *require;
char *retry_after;
char *rtp_info;
char *scale;
char *server;
char *session;
char *speed;
char *transport;
char *unsupported;
char *user_agent;
char *via;
char *www_authenticate;
} rtsp_decode_t;
struct rtp_packet;
typedef void (*rtp_callback_f)(void *,
unsigned char interleaved,
struct rtp_packet *,
int len);
#define RTSP_RESPONSE_RECV_ERROR -1
#define RTSP_RESPONSE_BAD -2
#define RTSP_RESPONSE_MISSING_OR_BAD_PARAM -3
#define RTSP_RESPONSE_BAD_URL -4
#define RTSP_RESPONSE_CLOSED_SOCKET -5
#define RTSP_RESPONSE_REDIRECT 1
#define RTSP_RESPONSE_GOOD 0
#define RTSP_RESPONSE_MALFORM_HEADER -6
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -