rtsp_client.h
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:9k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- /*
- * 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 "systems.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*
- * rtsp_command_t. Structure that contains information required by
- * RTSP for headers when sending commands. For most commands, 1 or
- * more fields are required to be set. See prototypes for individual
- * commands for which fields are required.
- */
- typedef struct rtsp_command_t {
- 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;
- /*
- * rtsp_decode_t. Structure containing information about the response
- * from a RTSP command. Some information will be required by application.
- * User can move string memory from this structure, but must free memory
- * after using it. Make sure to set field to NULL for memory moved from
- * this structure.
- * User must call free_decode_response when completed
- */
- typedef struct rtsp_decode_t {
- uint32_t content_length;
- uint32_t cseq;
- int close_connection;
- char retcode[4]; /* 3 byte return code -