1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

remove the namespace srs, use http prefix

This commit is contained in:
winlin 2014-04-01 17:30:55 +08:00
parent 1922d62ff7
commit 5bbb76a59d
2 changed files with 13 additions and 18 deletions

View file

@ -38,8 +38,6 @@ using namespace std;
#include <srs_kernel_log.hpp> #include <srs_kernel_log.hpp>
#include <srs_app_socket.hpp> #include <srs_app_socket.hpp>
using namespace srs;
#define SRS_DEFAULT_HTTP_PORT 80 #define SRS_DEFAULT_HTTP_PORT 80
#define SRS_HTTP_RESPONSE_OK "0" #define SRS_HTTP_RESPONSE_OK "0"

View file

@ -34,23 +34,20 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifdef SRS_HTTP_PARSER #ifdef SRS_HTTP_PARSER
// http specification // http specification
namespace srs // CR = <US-ASCII CR, carriage return (13)>
{ #define __CR "\r" // 0x0D
// CR = <US-ASCII CR, carriage return (13)> // LF = <US-ASCII LF, linefeed (10)>
#define __CR "\r" // 0x0D #define __LF "\n" // 0x0A
// LF = <US-ASCII LF, linefeed (10)> // SP = <US-ASCII SP, space (32)>
#define __LF "\n" // 0x0A #define __SP " " // 0x20
// SP = <US-ASCII SP, space (32)> // HT = <US-ASCII HT, horizontal-tab (9)>
#define __SP " " // 0x20 #define __HT "\x09" // 0x09
// HT = <US-ASCII HT, horizontal-tab (9)>
#define __HT "\x09" // 0x09
// HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all // HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all
// protocol elements except the entity-body (see appendix 19.3 for // protocol elements except the entity-body (see appendix 19.3 for
// tolerant applications). // tolerant applications).
#define __CRLF "\r\n" // 0x0D0A #define __CRLF "\r\n" // 0x0D0A
#define __CRLFCRLF "\r\n\r\n" // 0x0D0A0D0A #define __CRLFCRLF "\r\n\r\n" // 0x0D0A0D0A
};
#endif #endif