Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

RTSPDefs.h

Go to the documentation of this file.
00001 /* Copyright (C) 2005 Carsten Griwodz 00002 * 00003 * You are allowed to use this code under the following terms: 00004 * 00005 * For non-commercial use, this code may be used in unmodified form 00006 * provided that this copyright notice and this permission notice appear 00007 * in supporting documentation. 00008 * 00009 * The code may be made subject to the terms of the GNU General Public 00010 * License, Version 2, and re-distributed under the terms of this license. 00011 * 00012 * Commercial use other than under the terms of the GNU General Public 00013 * License is allowed only after negotiation of conditions with the authors. 00014 */ 00015 #ifndef RTSP_DEFS_H 00016 #define RTSP_DEFS_H 00017 00018 #include "MNString.h" 00019 00020 namespace RTSP 00021 { 00022 00023 static const int DefaultPort = 554; 00024 // #define RTSP_DEFAULT_PORT 554 00025 00026 /*********************************************************************** 00027 * MethodCode 00028 ***********************************************************************/ 00029 00030 enum MethodCode 00031 { 00032 SETUP_METHOD = 0, 00033 DESCRIBE_METHOD = 1, 00034 REDIRECT_METHOD = 2, 00035 PLAY_METHOD = 3, 00036 PAUSE_METHOD = 4, 00037 SESSION_METHOD = 5, 00038 OPTIONS_METHOD = 6, 00039 RECORD_METHOD = 7, 00040 CLOSE_METHOD = 8, 00041 GET_PARAM_METHOD = 9, 00042 SET_PARAM_METHOD = 10, 00043 EXTENSION_METHOD = 11 00044 }; 00045 00046 /*********************************************************************** 00047 * MethodResponseCode 00048 * 00049 * Method response codes. These are 100 greater than their 00050 * associated method values. This allows for simplified 00051 * creation of event codes that get used in event_handler() 00052 ***********************************************************************/ 00053 00054 enum MethodResponseCode 00055 { 00056 SETUP_RESPONSE = 100, 00057 DESCRIBE_RESPONSE = 101, 00058 REDIRECT_RESPONSE = 102, 00059 PLAY_RESPONSE = 103, 00060 PAUSE_RESPONSE = 104, 00061 SESSION_RESPONSE = 105, 00062 OPTIONS_RESPONSE = 106, 00063 RECORD_RESPONSE = 107, 00064 CLOSE_RESPONSE = 108, 00065 GET_PARAM_RESPONSE = 109, 00066 SET_PARAM_RESPONSE = 110, 00067 EXTENSION_RESPONSE = 111 00068 }; 00069 00070 }; // namespace RTSP 00071 00072 /*********************************************************************** 00073 * StreamState 00074 ***********************************************************************/ 00075 00076 enum StreamState 00077 { 00078 STREAM_READY = 1, 00079 STREAM_PLAY = 2, 00080 STREAM_PLAYING = 4, 00081 STREAM_PAUSING = 8, 00082 STREAM_PAUSED = 16 00083 }; 00084 00085 #endif /* RTSP_DEFS_H */ 00086

Generated on Sun Mar 6 13:35:50 2005 for Komssys by doxygen 1.3.8