rtsp_response.h

来自「最基本的rtsp client 程序」· C头文件 代码 · 共 66 行

H
66
字号
#ifndef _RTSP_RESPONSE_H_#define _RTSP_RESPONSE_H_ #ifdef __cplusplusextern "C" {#endiftypedef struct rtsp_resp_t {  int content_length;  int cseq;  int close_connection;  char retcode[4];  char *caption;  char *retresp;  char *body;  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_resp_t;void clear_response (rtsp_resp_t *resp);void free_response (rtsp_resp_t *resp);int simple_parse_sdp(char* sdp);int rtsp_recv_response (rtsp_client_t *client, rtsp_resp_t *response);int rtsp_recv_interleave_data(rtsp_client_t *client, char *buffer, int *length, int *interleave_id);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?