comparison rtsp.h @ 3957:9f943bb755f9 libavformat

Rename RTSPProtocol to RTSPLowerTransport, so that its name properly tells us that it only describes the lower-level transport (TCP vs. UDP) and not the actual data layout (e.g. RDT vs. RTP). See discussion in "Realmedia patch" thread on ML.
author rbultje
date Tue, 30 Sep 2008 13:18:41 +0000
parents c9550824fd1c
children 13e9b0d3a314
comparison
equal deleted inserted replaced
3956:8bdecea89071 3957:9f943bb755f9
23 23
24 #include <stdint.h> 24 #include <stdint.h>
25 #include "avformat.h" 25 #include "avformat.h"
26 #include "rtspcodes.h" 26 #include "rtspcodes.h"
27 27
28 enum RTSPProtocol { 28 enum RTSPLowerTransport {
29 RTSP_PROTOCOL_RTP_UDP = 0, 29 RTSP_LOWER_TRANSPORT_UDP = 0,
30 RTSP_PROTOCOL_RTP_TCP = 1, 30 RTSP_LOWER_TRANSPORT_TCP = 1,
31 RTSP_PROTOCOL_RTP_UDP_MULTICAST = 2, 31 RTSP_LOWER_TRANSPORT_UDP_MULTICAST = 2,
32 /** 32 /**
33 * This is not part of public API and shouldn't be used outside of ffmpeg. 33 * This is not part of public API and shouldn't be used outside of ffmpeg.
34 */ 34 */
35 RTSP_PROTOCOL_RTP_LAST 35 RTSP_LOWER_TRANSPORT_LAST
36 }; 36 };
37 37
38 #define RTSP_DEFAULT_PORT 554 38 #define RTSP_DEFAULT_PORT 554
39 #define RTSP_MAX_TRANSPORTS 8 39 #define RTSP_MAX_TRANSPORTS 8
40 #define RTSP_TCP_MAX_PACKET_SIZE 1472 40 #define RTSP_TCP_MAX_PACKET_SIZE 1472
48 int port_min, port_max; /**< RTP ports */ 48 int port_min, port_max; /**< RTP ports */
49 int client_port_min, client_port_max; /**< RTP ports */ 49 int client_port_min, client_port_max; /**< RTP ports */
50 int server_port_min, server_port_max; /**< RTP ports */ 50 int server_port_min, server_port_max; /**< RTP ports */
51 int ttl; /**< ttl value */ 51 int ttl; /**< ttl value */
52 uint32_t destination; /**< destination IP address */ 52 uint32_t destination; /**< destination IP address */
53 enum RTSPProtocol protocol; 53 enum RTSPLowerTransport lower_transport;
54 } RTSPTransportField; 54 } RTSPTransportField;
55 55
56 typedef struct RTSPHeader { 56 typedef struct RTSPHeader {
57 int content_length; 57 int content_length;
58 enum RTSPStatusCode status_code; /**< response code from server */ 58 enum RTSPStatusCode status_code; /**< response code from server */