2014-07-20 05:04:48 +00:00
|
|
|
/*
|
|
|
|
The MIT License (MIT)
|
|
|
|
|
2015-04-29 09:38:23 +00:00
|
|
|
Copyright (c) 2013-2015 SRS(simple-rtmp-server)
|
2014-07-20 05:04:48 +00:00
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
|
this software and associated documentation files (the "Software"), to deal in
|
|
|
|
the Software without restriction, including without limitation the rights to
|
|
|
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
|
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
|
|
subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
|
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
|
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SRS_KERNEL_CONSTS_HPP
|
|
|
|
#define SRS_KERNEL_CONSTS_HPP
|
|
|
|
|
|
|
|
/*
|
|
|
|
#include <srs_kernel_consts.hpp>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <srs_core.hpp>
|
|
|
|
|
2014-07-20 05:23:45 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
2014-07-20 05:11:53 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// RTMP consts values
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// default vhost of rtmp
|
|
|
|
#define SRS_CONSTS_RTMP_DEFAULT_VHOST "__defaultVhost__"
|
|
|
|
// default port of rtmp
|
|
|
|
#define SRS_CONSTS_RTMP_DEFAULT_PORT "1935"
|
|
|
|
|
|
|
|
// the default chunk size for system.
|
|
|
|
#define SRS_CONSTS_RTMP_SRS_CHUNK_SIZE 60000
|
|
|
|
// 6. Chunking, RTMP protocol default chunk size.
|
|
|
|
#define SRS_CONSTS_RTMP_PROTOCOL_CHUNK_SIZE 128
|
2014-07-25 03:04:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 6. Chunking
|
|
|
|
* The chunk size is configurable. It can be set using a control
|
|
|
|
* message(Set Chunk Size) as described in section 7.1. The maximum
|
|
|
|
* chunk size can be 65536 bytes and minimum 128 bytes. Larger values
|
|
|
|
* reduce CPU usage, but also commit to larger writes that can delay
|
|
|
|
* other content on lower bandwidth connections. Smaller chunks are not
|
|
|
|
* good for high-bit rate streaming. Chunk size is maintained
|
|
|
|
* independently for each direction.
|
|
|
|
*/
|
|
|
|
#define SRS_CONSTS_RTMP_MIN_CHUNK_SIZE 128
|
|
|
|
#define SRS_CONSTS_RTMP_MAX_CHUNK_SIZE 65536
|
|
|
|
|
2014-07-20 05:23:45 +00:00
|
|
|
|
|
|
|
// the following is the timeout for rtmp protocol,
|
|
|
|
// to avoid death connection.
|
|
|
|
|
2014-11-12 04:59:53 +00:00
|
|
|
// the timeout to send data to client,
|
2014-07-20 05:23:45 +00:00
|
|
|
// if timeout, close the connection.
|
2014-07-20 05:25:25 +00:00
|
|
|
#define SRS_CONSTS_RTMP_SEND_TIMEOUT_US (int64_t)(30*1000*1000LL)
|
2014-07-20 05:23:45 +00:00
|
|
|
|
2014-11-12 04:59:53 +00:00
|
|
|
// the timeout to wait client data,
|
2014-07-20 05:23:45 +00:00
|
|
|
// if timeout, close the connection.
|
2014-07-20 05:25:25 +00:00
|
|
|
#define SRS_CONSTS_RTMP_RECV_TIMEOUT_US (int64_t)(30*1000*1000LL)
|
2014-07-20 05:23:45 +00:00
|
|
|
|
|
|
|
// the timeout to wait for client control message,
|
|
|
|
// if timeout, we generally ignore and send the data to client,
|
|
|
|
// generally, it's the pulse time for data seding.
|
2014-11-13 04:45:54 +00:00
|
|
|
// @remark, recomment to 500ms.
|
2014-11-12 04:59:53 +00:00
|
|
|
#define SRS_CONSTS_RTMP_PULSE_TIMEOUT_US (int64_t)(500*1000LL)
|
2014-07-20 05:23:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* max rtmp header size:
|
|
|
|
* 1bytes basic header,
|
|
|
|
* 11bytes message header,
|
|
|
|
* 4bytes timestamp header,
|
|
|
|
* that is, 1+11+4=16bytes.
|
|
|
|
*/
|
2014-07-20 05:25:25 +00:00
|
|
|
#define SRS_CONSTS_RTMP_MAX_FMT0_HEADER_SIZE 16
|
2014-07-20 05:23:45 +00:00
|
|
|
/**
|
|
|
|
* max rtmp header size:
|
|
|
|
* 1bytes basic header,
|
|
|
|
* 4bytes timestamp header,
|
|
|
|
* that is, 1+4=5bytes.
|
|
|
|
*/
|
|
|
|
// always use fmt0 as cache.
|
2014-12-07 03:25:05 +00:00
|
|
|
#define SRS_CONSTS_RTMP_MAX_FMT3_HEADER_SIZE 5
|
2014-07-20 05:23:45 +00:00
|
|
|
|
2014-11-13 04:25:56 +00:00
|
|
|
/**
|
|
|
|
* for performance issue,
|
2015-04-29 09:06:32 +00:00
|
|
|
* the iovs cache, @see https://github.com/simple-rtmp-server/srs/issues/194
|
2014-11-13 04:25:56 +00:00
|
|
|
* iovs cache for multiple messages for each connections.
|
2014-12-05 03:24:05 +00:00
|
|
|
* suppose the chunk size is 64k, each message send in a chunk which needs only 2 iovec,
|
|
|
|
* so the iovs max should be (SRS_PERF_MW_MSGS * 2)
|
2014-11-13 04:45:54 +00:00
|
|
|
*
|
|
|
|
* @remark, SRS will realloc when the iovs not enough.
|
2014-11-13 04:25:56 +00:00
|
|
|
*/
|
2014-12-05 03:24:05 +00:00
|
|
|
#define SRS_CONSTS_IOVS_MAX (SRS_PERF_MW_MSGS * 2)
|
2014-11-13 04:25:56 +00:00
|
|
|
/**
|
|
|
|
* for performance issue,
|
2015-04-29 09:06:32 +00:00
|
|
|
* the c0c3 cache, @see https://github.com/simple-rtmp-server/srs/issues/194
|
2014-11-13 04:25:56 +00:00
|
|
|
* c0c3 cache for multiple messages for each connections.
|
2014-11-13 04:45:54 +00:00
|
|
|
* each c0 <= 16byes, suppose the chunk size is 64k,
|
|
|
|
* each message send in a chunk which needs only a c0 header,
|
2014-12-05 03:24:05 +00:00
|
|
|
* so the c0c3 cache should be (SRS_PERF_MW_MSGS * 16)
|
2014-11-13 04:45:54 +00:00
|
|
|
*
|
|
|
|
* @remark, SRS will try another loop when c0c3 cache dry, for we cannot realloc it.
|
2014-12-05 03:24:05 +00:00
|
|
|
* so we use larger c0c3 cache, that is (SRS_PERF_MW_MSGS * 32)
|
2014-11-13 04:25:56 +00:00
|
|
|
*/
|
2014-12-05 03:24:05 +00:00
|
|
|
#define SRS_CONSTS_C0C3_HEADERS_MAX (SRS_PERF_MW_MSGS * 32)
|
2014-11-13 04:25:56 +00:00
|
|
|
|
2014-07-20 05:23:45 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
2014-07-20 05:11:53 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// SRS consts values
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
#define SRS_CONSTS_NULL_FILE "/dev/null"
|
|
|
|
#define SRS_CONSTS_LOCALHOST "127.0.0.1"
|
|
|
|
|
2014-07-20 05:23:45 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// log consts values
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// downloading speed-up, play to edge, ingest from origin
|
|
|
|
#define SRS_CONSTS_LOG_EDGE_PLAY "EIG"
|
|
|
|
// uploading speed-up, publish to edge, foward to origin
|
|
|
|
#define SRS_CONSTS_LOG_EDGE_PUBLISH "EFW"
|
|
|
|
// edge/origin forwarder.
|
|
|
|
#define SRS_CONSTS_LOG_FOWARDER "FWR"
|
|
|
|
// play stream on edge/origin.
|
|
|
|
#define SRS_CONSTS_LOG_PLAY "PLA"
|
|
|
|
// client publish to edge/origin
|
|
|
|
#define SRS_CONSTS_LOG_CLIENT_PUBLISH "CPB"
|
|
|
|
// web/flash publish to edge/origin
|
|
|
|
#define SRS_CONSTS_LOG_WEB_PUBLISH "WPB"
|
|
|
|
// ingester for edge(play)/origin
|
|
|
|
#define SRS_CONSTS_LOG_INGESTER "IGS"
|
|
|
|
// hls log id.
|
|
|
|
#define SRS_CONSTS_LOG_HLS "HLS"
|
|
|
|
// encoder log id.
|
|
|
|
#define SRS_CONSTS_LOG_ENCODER "ENC"
|
2015-02-19 10:56:21 +00:00
|
|
|
// http stream log id.
|
|
|
|
#define SRS_CONSTS_LOG_HTTP_STREAM "HTS"
|
|
|
|
// http stream cache log id.
|
|
|
|
#define SRS_CONSTS_LOG_HTTP_STREAM_CACHE "HTC"
|
|
|
|
// stream caster log id.
|
|
|
|
#define SRS_CONSTS_LOG_STREAM_CASTER "SCS"
|
2015-08-25 14:29:00 +00:00
|
|
|
// the nginx exec log id.
|
|
|
|
#define SRS_CONSTS_LOG_EXEC "EXE"
|
2014-07-20 05:11:53 +00:00
|
|
|
|
2014-07-20 05:39:42 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
2015-01-17 05:29:11 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// RTMP consts values
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
#define SRS_CONSTS_RTMP_SET_DATAFRAME "@setDataFrame"
|
|
|
|
#define SRS_CONSTS_RTMP_ON_METADATA "onMetaData"
|
|
|
|
|
2015-02-10 03:38:14 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// HTTP/HLS consts values
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// @see hls-m3u8-draft-pantos-http-live-streaming-12.pdf, page 4
|
|
|
|
// Lines are terminated by either a single LF character or a CR
|
|
|
|
// character followed by an LF character.
|
|
|
|
// CR = <US-ASCII CR, carriage return (13)>
|
|
|
|
#define SRS_CONSTS_CR '\r' // 0x0D
|
|
|
|
// LF = <US-ASCII LF, linefeed (10)>
|
|
|
|
#define SRS_CONSTS_LF '\n' // 0x0A
|
2015-08-26 13:49:05 +00:00
|
|
|
// SP = <US-ASCII SP, space>
|
|
|
|
#define SRS_CONSTS_SP ' ' // 0x20
|
|
|
|
// SE = <US-ASCII SE, semicolon>
|
|
|
|
#define SRS_CONSTS_SE ';' // 0x3b
|
|
|
|
// LB = <US-ASCII SE, left-brace>
|
|
|
|
#define SRS_CONSTS_LB '{' // 0x7b
|
|
|
|
// RB = <US-ASCII SE, right-brace>
|
|
|
|
#define SRS_CONSTS_RB '}' // 0x7d
|
2015-02-10 03:38:14 +00:00
|
|
|
|
2014-07-20 05:39:42 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// HTTP consts values
|
|
|
|
///////////////////////////////////////////////////////////
|
2014-07-20 05:42:29 +00:00
|
|
|
// linux path seprator
|
|
|
|
#define SRS_CONSTS_HTTP_PATH_SEP '/'
|
|
|
|
// query string seprator
|
|
|
|
#define SRS_CONSTS_HTTP_QUERY_SEP '?'
|
|
|
|
|
2015-05-22 05:57:04 +00:00
|
|
|
// the default recv timeout.
|
|
|
|
#define SRS_HTTP_RECV_TIMEOUT_US 60 * 1000 * 1000
|
|
|
|
|
2014-07-20 05:39:42 +00:00
|
|
|
// 6.1.1 Status Code and Reason Phrase
|
|
|
|
#define SRS_CONSTS_HTTP_Continue 100
|
|
|
|
#define SRS_CONSTS_HTTP_SwitchingProtocols 101
|
|
|
|
#define SRS_CONSTS_HTTP_OK 200
|
|
|
|
#define SRS_CONSTS_HTTP_Created 201
|
|
|
|
#define SRS_CONSTS_HTTP_Accepted 202
|
|
|
|
#define SRS_CONSTS_HTTP_NonAuthoritativeInformation 203
|
|
|
|
#define SRS_CONSTS_HTTP_NoContent 204
|
|
|
|
#define SRS_CONSTS_HTTP_ResetContent 205
|
|
|
|
#define SRS_CONSTS_HTTP_PartialContent 206
|
|
|
|
#define SRS_CONSTS_HTTP_MultipleChoices 300
|
|
|
|
#define SRS_CONSTS_HTTP_MovedPermanently 301
|
|
|
|
#define SRS_CONSTS_HTTP_Found 302
|
|
|
|
#define SRS_CONSTS_HTTP_SeeOther 303
|
|
|
|
#define SRS_CONSTS_HTTP_NotModified 304
|
|
|
|
#define SRS_CONSTS_HTTP_UseProxy 305
|
|
|
|
#define SRS_CONSTS_HTTP_TemporaryRedirect 307
|
|
|
|
#define SRS_CONSTS_HTTP_BadRequest 400
|
|
|
|
#define SRS_CONSTS_HTTP_Unauthorized 401
|
|
|
|
#define SRS_CONSTS_HTTP_PaymentRequired 402
|
|
|
|
#define SRS_CONSTS_HTTP_Forbidden 403
|
|
|
|
#define SRS_CONSTS_HTTP_NotFound 404
|
|
|
|
#define SRS_CONSTS_HTTP_MethodNotAllowed 405
|
|
|
|
#define SRS_CONSTS_HTTP_NotAcceptable 406
|
|
|
|
#define SRS_CONSTS_HTTP_ProxyAuthenticationRequired 407
|
|
|
|
#define SRS_CONSTS_HTTP_RequestTimeout 408
|
|
|
|
#define SRS_CONSTS_HTTP_Conflict 409
|
|
|
|
#define SRS_CONSTS_HTTP_Gone 410
|
|
|
|
#define SRS_CONSTS_HTTP_LengthRequired 411
|
|
|
|
#define SRS_CONSTS_HTTP_PreconditionFailed 412
|
|
|
|
#define SRS_CONSTS_HTTP_RequestEntityTooLarge 413
|
|
|
|
#define SRS_CONSTS_HTTP_RequestURITooLarge 414
|
|
|
|
#define SRS_CONSTS_HTTP_UnsupportedMediaType 415
|
|
|
|
#define SRS_CONSTS_HTTP_RequestedRangeNotSatisfiable 416
|
|
|
|
#define SRS_CONSTS_HTTP_ExpectationFailed 417
|
|
|
|
#define SRS_CONSTS_HTTP_InternalServerError 500
|
|
|
|
#define SRS_CONSTS_HTTP_NotImplemented 501
|
|
|
|
#define SRS_CONSTS_HTTP_BadGateway 502
|
|
|
|
#define SRS_CONSTS_HTTP_ServiceUnavailable 503
|
|
|
|
#define SRS_CONSTS_HTTP_GatewayTimeout 504
|
|
|
|
#define SRS_CONSTS_HTTP_HTTPVersionNotSupported 505
|
|
|
|
|
|
|
|
#define SRS_CONSTS_HTTP_Continue_str "Continue"
|
|
|
|
#define SRS_CONSTS_HTTP_SwitchingProtocols_str "Switching Protocols"
|
|
|
|
#define SRS_CONSTS_HTTP_OK_str "OK"
|
2015-02-16 14:15:59 +00:00
|
|
|
#define SRS_CONSTS_HTTP_Created_str "Created"
|
2014-07-20 05:39:42 +00:00
|
|
|
#define SRS_CONSTS_HTTP_Accepted_str "Accepted"
|
2015-02-16 14:15:59 +00:00
|
|
|
#define SRS_CONSTS_HTTP_NonAuthoritativeInformation_str "Non Authoritative Information"
|
|
|
|
#define SRS_CONSTS_HTTP_NoContent_str "No Content"
|
2014-07-20 05:39:42 +00:00
|
|
|
#define SRS_CONSTS_HTTP_ResetContent_str "Reset Content"
|
|
|
|
#define SRS_CONSTS_HTTP_PartialContent_str "Partial Content"
|
2015-02-16 14:15:59 +00:00
|
|
|
#define SRS_CONSTS_HTTP_MultipleChoices_str "Multiple Choices"
|
2014-07-20 05:39:42 +00:00
|
|
|
#define SRS_CONSTS_HTTP_MovedPermanently_str "Moved Permanently"
|
|
|
|
#define SRS_CONSTS_HTTP_Found_str "Found"
|
|
|
|
#define SRS_CONSTS_HTTP_SeeOther_str "See Other"
|
2015-02-16 14:15:59 +00:00
|
|
|
#define SRS_CONSTS_HTTP_NotModified_str "Not Modified"
|
2014-07-20 05:39:42 +00:00
|
|
|
#define SRS_CONSTS_HTTP_UseProxy_str "Use Proxy"
|
2015-02-16 14:15:59 +00:00
|
|
|
#define SRS_CONSTS_HTTP_TemporaryRedirect_str "Temporary Redirect"
|
2014-07-20 05:39:42 +00:00
|
|
|
#define SRS_CONSTS_HTTP_BadRequest_str "Bad Request"
|
|
|
|
#define SRS_CONSTS_HTTP_Unauthorized_str "Unauthorized"
|
2015-02-16 14:15:59 +00:00
|
|
|
#define SRS_CONSTS_HTTP_PaymentRequired_str "Payment Required"
|
|
|
|
#define SRS_CONSTS_HTTP_Forbidden_str "Forbidden"
|
2014-07-20 05:39:42 +00:00
|
|
|
#define SRS_CONSTS_HTTP_NotFound_str "Not Found"
|
|
|
|
#define SRS_CONSTS_HTTP_MethodNotAllowed_str "Method Not Allowed"
|
2015-02-16 14:15:59 +00:00
|
|
|
#define SRS_CONSTS_HTTP_NotAcceptable_str "Not Acceptable"
|
|
|
|
#define SRS_CONSTS_HTTP_ProxyAuthenticationRequired_str "Proxy Authentication Required"
|
2014-07-20 05:39:42 +00:00
|
|
|
#define SRS_CONSTS_HTTP_RequestTimeout_str "Request Timeout"
|
|
|
|
#define SRS_CONSTS_HTTP_Conflict_str "Conflict"
|
|
|
|
#define SRS_CONSTS_HTTP_Gone_str "Gone"
|
|
|
|
#define SRS_CONSTS_HTTP_LengthRequired_str "Length Required"
|
|
|
|
#define SRS_CONSTS_HTTP_PreconditionFailed_str "Precondition Failed"
|
2015-02-16 14:15:59 +00:00
|
|
|
#define SRS_CONSTS_HTTP_RequestEntityTooLarge_str "Request Entity Too Large"
|
2014-07-20 05:39:42 +00:00
|
|
|
#define SRS_CONSTS_HTTP_RequestURITooLarge_str "Request URI Too Large"
|
|
|
|
#define SRS_CONSTS_HTTP_UnsupportedMediaType_str "Unsupported Media Type"
|
|
|
|
#define SRS_CONSTS_HTTP_RequestedRangeNotSatisfiable_str "Requested Range Not Satisfiable"
|
2015-02-16 14:15:59 +00:00
|
|
|
#define SRS_CONSTS_HTTP_ExpectationFailed_str "Expectation Failed"
|
|
|
|
#define SRS_CONSTS_HTTP_InternalServerError_str "Internal Server Error"
|
2014-07-20 05:39:42 +00:00
|
|
|
#define SRS_CONSTS_HTTP_NotImplemented_str "Not Implemented"
|
|
|
|
#define SRS_CONSTS_HTTP_BadGateway_str "Bad Gateway"
|
|
|
|
#define SRS_CONSTS_HTTP_ServiceUnavailable_str "Service Unavailable"
|
|
|
|
#define SRS_CONSTS_HTTP_GatewayTimeout_str "Gateway Timeout"
|
|
|
|
#define SRS_CONSTS_HTTP_HTTPVersionNotSupported_str "HTTP Version Not Supported"
|
|
|
|
|
2015-02-16 14:15:59 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// RTSP consts values
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// 7.1.1 Status Code and Reason Phrase
|
|
|
|
#define SRS_CONSTS_RTSP_Continue 100
|
|
|
|
#define SRS_CONSTS_RTSP_OK 200
|
|
|
|
#define SRS_CONSTS_RTSP_Created 201
|
|
|
|
#define SRS_CONSTS_RTSP_LowOnStorageSpace 250
|
|
|
|
#define SRS_CONSTS_RTSP_MultipleChoices 300
|
|
|
|
#define SRS_CONSTS_RTSP_MovedPermanently 301
|
|
|
|
#define SRS_CONSTS_RTSP_MovedTemporarily 302
|
|
|
|
#define SRS_CONSTS_RTSP_SeeOther 303
|
|
|
|
#define SRS_CONSTS_RTSP_NotModified 304
|
|
|
|
#define SRS_CONSTS_RTSP_UseProxy 305
|
|
|
|
#define SRS_CONSTS_RTSP_BadRequest 400
|
|
|
|
#define SRS_CONSTS_RTSP_Unauthorized 401
|
|
|
|
#define SRS_CONSTS_RTSP_PaymentRequired 402
|
|
|
|
#define SRS_CONSTS_RTSP_Forbidden 403
|
|
|
|
#define SRS_CONSTS_RTSP_NotFound 404
|
|
|
|
#define SRS_CONSTS_RTSP_MethodNotAllowed 405
|
|
|
|
#define SRS_CONSTS_RTSP_NotAcceptable 406
|
|
|
|
#define SRS_CONSTS_RTSP_ProxyAuthenticationRequired 407
|
|
|
|
#define SRS_CONSTS_RTSP_RequestTimeout 408
|
|
|
|
#define SRS_CONSTS_RTSP_Gone 410
|
|
|
|
#define SRS_CONSTS_RTSP_LengthRequired 411
|
|
|
|
#define SRS_CONSTS_RTSP_PreconditionFailed 412
|
|
|
|
#define SRS_CONSTS_RTSP_RequestEntityTooLarge 413
|
|
|
|
#define SRS_CONSTS_RTSP_RequestURITooLarge 414
|
|
|
|
#define SRS_CONSTS_RTSP_UnsupportedMediaType 415
|
|
|
|
#define SRS_CONSTS_RTSP_ParameterNotUnderstood 451
|
|
|
|
#define SRS_CONSTS_RTSP_ConferenceNotFound 452
|
|
|
|
#define SRS_CONSTS_RTSP_NotEnoughBandwidth 453
|
|
|
|
#define SRS_CONSTS_RTSP_SessionNotFound 454
|
|
|
|
#define SRS_CONSTS_RTSP_MethodNotValidInThisState 455
|
|
|
|
#define SRS_CONSTS_RTSP_HeaderFieldNotValidForResource 456
|
|
|
|
#define SRS_CONSTS_RTSP_InvalidRange 457
|
|
|
|
#define SRS_CONSTS_RTSP_ParameterIsReadOnly 458
|
|
|
|
#define SRS_CONSTS_RTSP_AggregateOperationNotAllowed 459
|
|
|
|
#define SRS_CONSTS_RTSP_OnlyAggregateOperationAllowed 460
|
|
|
|
#define SRS_CONSTS_RTSP_UnsupportedTransport 461
|
|
|
|
#define SRS_CONSTS_RTSP_DestinationUnreachable 462
|
|
|
|
#define SRS_CONSTS_RTSP_InternalServerError 500
|
|
|
|
#define SRS_CONSTS_RTSP_NotImplemented 501
|
|
|
|
#define SRS_CONSTS_RTSP_BadGateway 502
|
|
|
|
#define SRS_CONSTS_RTSP_ServiceUnavailable 503
|
|
|
|
#define SRS_CONSTS_RTSP_GatewayTimeout 504
|
|
|
|
#define SRS_CONSTS_RTSP_RTSPVersionNotSupported 505
|
|
|
|
#define SRS_CONSTS_RTSP_OptionNotSupported 551
|
|
|
|
|
|
|
|
#define SRS_CONSTS_RTSP_Continue_str "Continue"
|
|
|
|
#define SRS_CONSTS_RTSP_OK_str "OK"
|
|
|
|
#define SRS_CONSTS_RTSP_Created_str "Created"
|
|
|
|
#define SRS_CONSTS_RTSP_LowOnStorageSpace_str "Low on Storage Space"
|
|
|
|
#define SRS_CONSTS_RTSP_MultipleChoices_str "Multiple Choices"
|
|
|
|
#define SRS_CONSTS_RTSP_MovedPermanently_str "Moved Permanently"
|
|
|
|
#define SRS_CONSTS_RTSP_MovedTemporarily_str "Moved Temporarily"
|
|
|
|
#define SRS_CONSTS_RTSP_SeeOther_str "See Other"
|
|
|
|
#define SRS_CONSTS_RTSP_NotModified_str "Not Modified"
|
|
|
|
#define SRS_CONSTS_RTSP_UseProxy_str "Use Proxy"
|
|
|
|
#define SRS_CONSTS_RTSP_BadRequest_str "Bad Request"
|
|
|
|
#define SRS_CONSTS_RTSP_Unauthorized_str "Unauthorized"
|
|
|
|
#define SRS_CONSTS_RTSP_PaymentRequired_str "Payment Required"
|
|
|
|
#define SRS_CONSTS_RTSP_Forbidden_str "Forbidden"
|
|
|
|
#define SRS_CONSTS_RTSP_NotFound_str "Not Found"
|
|
|
|
#define SRS_CONSTS_RTSP_MethodNotAllowed_str "Method Not Allowed"
|
|
|
|
#define SRS_CONSTS_RTSP_NotAcceptable_str "Not Acceptable"
|
|
|
|
#define SRS_CONSTS_RTSP_ProxyAuthenticationRequired_str "Proxy Authentication Required"
|
|
|
|
#define SRS_CONSTS_RTSP_RequestTimeout_str "Request Timeout"
|
|
|
|
#define SRS_CONSTS_RTSP_Gone_str "Gone"
|
|
|
|
#define SRS_CONSTS_RTSP_LengthRequired_str "Length Required"
|
|
|
|
#define SRS_CONSTS_RTSP_PreconditionFailed_str "Precondition Failed"
|
|
|
|
#define SRS_CONSTS_RTSP_RequestEntityTooLarge_str "Request Entity Too Large"
|
|
|
|
#define SRS_CONSTS_RTSP_RequestURITooLarge_str "Request URI Too Large"
|
|
|
|
#define SRS_CONSTS_RTSP_UnsupportedMediaType_str "Unsupported Media Type"
|
|
|
|
#define SRS_CONSTS_RTSP_ParameterNotUnderstood_str "Invalid parameter"
|
|
|
|
#define SRS_CONSTS_RTSP_ConferenceNotFound_str "Illegal Conference Identifier"
|
|
|
|
#define SRS_CONSTS_RTSP_NotEnoughBandwidth_str "Not Enough Bandwidth"
|
|
|
|
#define SRS_CONSTS_RTSP_SessionNotFound_str "Session Not Found"
|
|
|
|
#define SRS_CONSTS_RTSP_MethodNotValidInThisState_str "Method Not Valid In This State"
|
|
|
|
#define SRS_CONSTS_RTSP_HeaderFieldNotValidForResource_str "Header Field Not Valid"
|
|
|
|
#define SRS_CONSTS_RTSP_InvalidRange_str "Invalid Range"
|
|
|
|
#define SRS_CONSTS_RTSP_ParameterIsReadOnly_str "Parameter Is Read-Only"
|
|
|
|
#define SRS_CONSTS_RTSP_AggregateOperationNotAllowed_str "Aggregate Operation Not Allowed"
|
|
|
|
#define SRS_CONSTS_RTSP_OnlyAggregateOperationAllowed_str "Only Aggregate Operation Allowed"
|
|
|
|
#define SRS_CONSTS_RTSP_UnsupportedTransport_str "Unsupported Transport"
|
|
|
|
#define SRS_CONSTS_RTSP_DestinationUnreachable_str "Destination Unreachable"
|
|
|
|
#define SRS_CONSTS_RTSP_InternalServerError_str "Internal Server Error"
|
|
|
|
#define SRS_CONSTS_RTSP_NotImplemented_str "Not Implemented"
|
|
|
|
#define SRS_CONSTS_RTSP_BadGateway_str "Bad Gateway"
|
|
|
|
#define SRS_CONSTS_RTSP_ServiceUnavailable_str "Service Unavailable"
|
|
|
|
#define SRS_CONSTS_RTSP_GatewayTimeout_str "Gateway Timeout"
|
|
|
|
#define SRS_CONSTS_RTSP_RTSPVersionNotSupported_str "RTSP Version Not Supported"
|
|
|
|
#define SRS_CONSTS_RTSP_OptionNotSupported_str "Option not support"
|
|
|
|
|
2014-07-20 05:04:48 +00:00
|
|
|
#endif
|
2014-08-02 14:18:39 +00:00
|
|
|
|