winlin

final the modularity, rename the app module.

正在显示 40 个修改的文件 包含 169 行增加169 行删除
@@ -185,10 +185,10 @@ RTMP_OBJS="${MODULE_OBJS[@]}" @@ -185,10 +185,10 @@ RTMP_OBJS="${MODULE_OBJS[@]}"
185 MODULE_ID="APP" 185 MODULE_ID="APP"
186 MODULE_DEPENDS=("CORE" "KERNEL" "RTMP") 186 MODULE_DEPENDS=("CORE" "KERNEL" "RTMP")
187 ModuleLibIncs=(${LibSTRoot} ${LibHttpParserRoot} ${SRS_OBJS}) 187 ModuleLibIncs=(${LibSTRoot} ${LibHttpParserRoot} ${SRS_OBJS})
188 -MODULE_FILES=("srs_core_server" "srs_core_conn" "srs_core_client" "srs_core_socket" "srs_core_source"  
189 - "srs_core_codec" "srs_core_refer" "srs_core_hls" "srs_core_forward" "srs_core_encoder"  
190 - "srs_core_http" "srs_core_thread" "srs_core_bandwidth" "srs_core_st" "srs_core_log"  
191 - "srs_core_config" "srs_core_pithy_print" "srs_core_reload") 188 +MODULE_FILES=("srs_app_server" "srs_app_conn" "srs_app_client" "srs_app_socket" "srs_app_source"
  189 + "srs_app_codec" "srs_app_refer" "srs_app_hls" "srs_app_forward" "srs_app_encoder"
  190 + "srs_app_http" "srs_app_thread" "srs_app_bandwidth" "srs_app_st" "srs_app_log"
  191 + "srs_app_config" "srs_app_pithy_print" "srs_app_reload")
192 MODULE_DIR="src/app" . auto/modules.sh 192 MODULE_DIR="src/app" . auto/modules.sh
193 APP_OBJS="${MODULE_OBJS[@]}" 193 APP_OBJS="${MODULE_OBJS[@]}"
194 # 194 #
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_bandwidth.hpp> 24 +#include <srs_app_bandwidth.hpp>
25 25
26 #include <arpa/inet.h> 26 #include <arpa/inet.h>
27 #include <sstream> 27 #include <sstream>
@@ -32,7 +32,7 @@ using namespace std; @@ -32,7 +32,7 @@ using namespace std;
32 #include <srs_kernel_error.hpp> 32 #include <srs_kernel_error.hpp>
33 #include <srs_protocol_amf0.hpp> 33 #include <srs_protocol_amf0.hpp>
34 #include <srs_protocol_rtmp_stack.hpp> 34 #include <srs_protocol_rtmp_stack.hpp>
35 -#include <srs_core_config.hpp> 35 +#include <srs_app_config.hpp>
36 #include <srs_core_autofree.hpp> 36 #include <srs_core_autofree.hpp>
37 37
38 SrsBandwidth::SrsBandwidth() 38 SrsBandwidth::SrsBandwidth()
@@ -21,15 +21,15 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,15 +21,15 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_BANDWIDTH_HPP  
25 -#define SRS_CORE_BANDWIDTH_HPP 24 +#ifndef SRS_APP_BANDWIDTH_HPP
  25 +#define SRS_APP_BANDWIDTH_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_bandwidth.hpp> 28 +#include <srs_app_bandwidth.hpp>
29 */ 29 */
30 #include <srs_core.hpp> 30 #include <srs_core.hpp>
31 31
32 -#include <srs_core_st.hpp> 32 +#include <srs_app_st.hpp>
33 33
34 class SrsRequest; 34 class SrsRequest;
35 class SrsRtmpServer; 35 class SrsRtmpServer;
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_client.hpp> 24 +#include <srs_app_client.hpp>
25 25
26 #include <arpa/inet.h> 26 #include <arpa/inet.h>
27 #include <stdlib.h> 27 #include <stdlib.h>
@@ -33,15 +33,15 @@ using namespace std; @@ -33,15 +33,15 @@ using namespace std;
33 #include <srs_protocol_rtmp.hpp> 33 #include <srs_protocol_rtmp.hpp>
34 #include <srs_protocol_rtmp_stack.hpp> 34 #include <srs_protocol_rtmp_stack.hpp>
35 #include <srs_core_autofree.hpp> 35 #include <srs_core_autofree.hpp>
36 -#include <srs_core_source.hpp>  
37 -#include <srs_core_server.hpp>  
38 -#include <srs_core_pithy_print.hpp>  
39 -#include <srs_core_config.hpp>  
40 -#include <srs_core_refer.hpp>  
41 -#include <srs_core_hls.hpp>  
42 -#include <srs_core_http.hpp>  
43 -#include <srs_core_bandwidth.hpp>  
44 -#include <srs_core_socket.hpp> 36 +#include <srs_app_source.hpp>
  37 +#include <srs_app_server.hpp>
  38 +#include <srs_app_pithy_print.hpp>
  39 +#include <srs_app_config.hpp>
  40 +#include <srs_app_refer.hpp>
  41 +#include <srs_app_hls.hpp>
  42 +#include <srs_app_http.hpp>
  43 +#include <srs_app_bandwidth.hpp>
  44 +#include <srs_app_socket.hpp>
45 45
46 SrsClient::SrsClient(SrsServer* srs_server, st_netfd_t client_stfd) 46 SrsClient::SrsClient(SrsServer* srs_server, st_netfd_t client_stfd)
47 : SrsConnection(srs_server, client_stfd) 47 : SrsConnection(srs_server, client_stfd)
@@ -21,18 +21,18 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,18 +21,18 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_CLIENT_HPP  
25 -#define SRS_CORE_CLIENT_HPP 24 +#ifndef SRS_APP_CLIENT_HPP
  25 +#define SRS_APP_CLIENT_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_client.hpp> 28 +#include <srs_app_client.hpp>
29 */ 29 */
30 30
31 #include <srs_core.hpp> 31 #include <srs_core.hpp>
32 32
33 -#include <srs_core_st.hpp>  
34 -#include <srs_core_conn.hpp>  
35 -#include <srs_core_reload.hpp> 33 +#include <srs_app_st.hpp>
  34 +#include <srs_app_conn.hpp>
  35 +#include <srs_app_reload.hpp>
36 36
37 class SrsRtmpServer; 37 class SrsRtmpServer;
38 class SrsRequest; 38 class SrsRequest;
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_codec.hpp> 24 +#include <srs_app_codec.hpp>
25 25
26 #include <string.h> 26 #include <string.h>
27 #include <stdlib.h> 27 #include <stdlib.h>
@@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_CODEC_HPP  
25 -#define SRS_CORE_CODEC_HPP 24 +#ifndef SRS_APP_CODEC_HPP
  25 +#define SRS_APP_CODEC_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_codec.hpp> 28 +#include <srs_app_codec.hpp>
29 */ 29 */
30 30
31 #include <srs_core.hpp> 31 #include <srs_core.hpp>
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_config.hpp> 24 +#include <srs_app_config.hpp>
25 25
26 #include <stdio.h> 26 #include <stdio.h>
27 #include <stdlib.h> 27 #include <stdlib.h>
@@ -21,18 +21,18 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,18 +21,18 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_CONIFG_HPP  
25 -#define SRS_CORE_CONIFG_HPP 24 +#ifndef SRS_APP_CONIFG_HPP
  25 +#define SRS_APP_CONIFG_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_config.hpp> 28 +#include <srs_app_config.hpp>
29 */ 29 */
30 #include <srs_core.hpp> 30 #include <srs_core.hpp>
31 31
32 #include <vector> 32 #include <vector>
33 #include <string> 33 #include <string>
34 34
35 -#include <srs_core_reload.hpp> 35 +#include <srs_app_reload.hpp>
36 36
37 // default vhost for rtmp 37 // default vhost for rtmp
38 #define RTMP_VHOST_DEFAULT "__defaultVhost__" 38 #define RTMP_VHOST_DEFAULT "__defaultVhost__"
@@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_conn.hpp> 24 +#include <srs_app_conn.hpp>
25 25
26 #include <srs_kernel_log.hpp> 26 #include <srs_kernel_log.hpp>
27 #include <srs_kernel_error.hpp> 27 #include <srs_kernel_error.hpp>
28 -#include <srs_core_server.hpp> 28 +#include <srs_app_server.hpp>
29 29
30 SrsConnection::SrsConnection(SrsServer* srs_server, st_netfd_t client_stfd) 30 SrsConnection::SrsConnection(SrsServer* srs_server, st_netfd_t client_stfd)
31 { 31 {
@@ -21,16 +21,16 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,16 +21,16 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_CONN_HPP  
25 -#define SRS_CORE_CONN_HPP 24 +#ifndef SRS_APP_CONN_HPP
  25 +#define SRS_APP_CONN_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_conn.hpp> 28 +#include <srs_app_conn.hpp>
29 */ 29 */
30 30
31 #include <srs_core.hpp> 31 #include <srs_core.hpp>
32 32
33 -#include <srs_core_st.hpp> 33 +#include <srs_app_st.hpp>
34 34
35 class SrsServer; 35 class SrsServer;
36 class SrsConnection 36 class SrsConnection
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_encoder.hpp> 24 +#include <srs_app_encoder.hpp>
25 25
26 #include <stdlib.h> 26 #include <stdlib.h>
27 #include <unistd.h> 27 #include <unistd.h>
@@ -34,9 +34,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -34,9 +34,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 34
35 #include <srs_kernel_error.hpp> 35 #include <srs_kernel_error.hpp>
36 #include <srs_kernel_log.hpp> 36 #include <srs_kernel_log.hpp>
37 -#include <srs_core_config.hpp> 37 +#include <srs_app_config.hpp>
38 #include <srs_protocol_rtmp.hpp> 38 #include <srs_protocol_rtmp.hpp>
39 -#include <srs_core_pithy_print.hpp> 39 +#include <srs_app_pithy_print.hpp>
40 #include <srs_protocol_rtmp_stack.hpp> 40 #include <srs_protocol_rtmp_stack.hpp>
41 41
42 #ifdef SRS_FFMPEG 42 #ifdef SRS_FFMPEG
@@ -21,18 +21,18 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,18 +21,18 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_ENCODER_HPP  
25 -#define SRS_CORE_ENCODER_HPP 24 +#ifndef SRS_APP_ENCODER_HPP
  25 +#define SRS_APP_ENCODER_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_encoder.hpp> 28 +#include <srs_app_encoder.hpp>
29 */ 29 */
30 #include <srs_core.hpp> 30 #include <srs_core.hpp>
31 31
32 #include <string> 32 #include <string>
33 #include <vector> 33 #include <vector>
34 34
35 -#include <srs_core_thread.hpp> 35 +#include <srs_app_thread.hpp>
36 36
37 class SrsConfDirective; 37 class SrsConfDirective;
38 class SrsRequest; 38 class SrsRequest;
@@ -21,20 +21,20 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,20 +21,20 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_forward.hpp> 24 +#include <srs_app_forward.hpp>
25 25
26 #include <stdlib.h> 26 #include <stdlib.h>
27 #include <sys/socket.h> 27 #include <sys/socket.h>
28 #include <netinet/in.h> 28 #include <netinet/in.h>
29 #include <arpa/inet.h> 29 #include <arpa/inet.h>
30 30
31 -#include <srs_core_source.hpp> 31 +#include <srs_app_source.hpp>
32 #include <srs_core_autofree.hpp> 32 #include <srs_core_autofree.hpp>
33 -#include <srs_core_socket.hpp> 33 +#include <srs_app_socket.hpp>
34 #include <srs_kernel_error.hpp> 34 #include <srs_kernel_error.hpp>
35 #include <srs_kernel_log.hpp> 35 #include <srs_kernel_log.hpp>
36 -#include <srs_core_config.hpp>  
37 -#include <srs_core_pithy_print.hpp> 36 +#include <srs_app_config.hpp>
  37 +#include <srs_app_pithy_print.hpp>
38 #include <srs_protocol_rtmp.hpp> 38 #include <srs_protocol_rtmp.hpp>
39 #include <srs_protocol_rtmp_stack.hpp> 39 #include <srs_protocol_rtmp_stack.hpp>
40 #include <srs_protocol_utility.hpp> 40 #include <srs_protocol_utility.hpp>
@@ -21,18 +21,18 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,18 +21,18 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_FORWARD_HPP  
25 -#define SRS_CORE_FORWARD_HPP 24 +#ifndef SRS_APP_FORWARD_HPP
  25 +#define SRS_APP_FORWARD_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_forward.hpp> 28 +#include <srs_app_forward.hpp>
29 */ 29 */
30 #include <srs_core.hpp> 30 #include <srs_core.hpp>
31 31
32 #include <string> 32 #include <string>
33 33
34 -#include <srs_core_st.hpp>  
35 -#include <srs_core_thread.hpp> 34 +#include <srs_app_st.hpp>
  35 +#include <srs_app_thread.hpp>
36 36
37 class ISrsProtocolReaderWriter; 37 class ISrsProtocolReaderWriter;
38 class SrsSharedPtrMessage; 38 class SrsSharedPtrMessage;
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_hls.hpp> 24 +#include <srs_app_hls.hpp>
25 25
26 #ifdef SRS_HLS 26 #ifdef SRS_HLS
27 27
@@ -34,14 +34,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -34,14 +34,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 #include <algorithm> 34 #include <algorithm>
35 35
36 #include <srs_kernel_error.hpp> 36 #include <srs_kernel_error.hpp>
37 -#include <srs_core_codec.hpp> 37 +#include <srs_app_codec.hpp>
38 #include <srs_protocol_amf0.hpp> 38 #include <srs_protocol_amf0.hpp>
39 #include <srs_protocol_rtmp_stack.hpp> 39 #include <srs_protocol_rtmp_stack.hpp>
40 -#include <srs_core_config.hpp>  
41 -#include <srs_core_source.hpp> 40 +#include <srs_app_config.hpp>
  41 +#include <srs_app_source.hpp>
42 #include <srs_core_autofree.hpp> 42 #include <srs_core_autofree.hpp>
43 #include <srs_protocol_rtmp.hpp> 43 #include <srs_protocol_rtmp.hpp>
44 -#include <srs_core_pithy_print.hpp> 44 +#include <srs_app_pithy_print.hpp>
45 45
46 // max PES packets size to flush the video. 46 // max PES packets size to flush the video.
47 #define SRS_HLS_AUDIO_CACHE_SIZE 512 * 1024 47 #define SRS_HLS_AUDIO_CACHE_SIZE 512 * 1024
@@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_HLS_HPP  
25 -#define SRS_CORE_HLS_HPP 24 +#ifndef SRS_APP_HLS_HPP
  25 +#define SRS_APP_HLS_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_hls.hpp> 28 +#include <srs_app_hls.hpp>
29 */ 29 */
30 #include <srs_core.hpp> 30 #include <srs_core.hpp>
31 31
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_http.hpp> 24 +#include <srs_app_http.hpp>
25 25
26 #ifdef SRS_HTTP 26 #ifdef SRS_HTTP
27 27
@@ -35,7 +35,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -35,7 +35,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35 #include <srs_kernel_error.hpp> 35 #include <srs_kernel_error.hpp>
36 #include <srs_protocol_rtmp.hpp> 36 #include <srs_protocol_rtmp.hpp>
37 #include <srs_kernel_log.hpp> 37 #include <srs_kernel_log.hpp>
38 -#include <srs_core_socket.hpp> 38 +#include <srs_app_socket.hpp>
39 39
40 #define SRS_DEFAULT_HTTP_PORT 80 40 #define SRS_DEFAULT_HTTP_PORT 80
41 #define SRS_HTTP_RESPONSE_OK "0" 41 #define SRS_HTTP_RESPONSE_OK "0"
@@ -21,15 +21,15 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,15 +21,15 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_HTTP_HPP  
25 -#define SRS_CORE_HTTP_HPP 24 +#ifndef SRS_APP_HTTP_HPP
  25 +#define SRS_APP_HTTP_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_http.hpp> 28 +#include <srs_app_http.hpp>
29 */ 29 */
30 #include <srs_core.hpp> 30 #include <srs_core.hpp>
31 31
32 -#include <srs_core_st.hpp> 32 +#include <srs_app_st.hpp>
33 33
34 #ifdef SRS_HTTP 34 #ifdef SRS_HTTP
35 35
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_log.hpp> 24 +#include <srs_app_log.hpp>
25 25
26 #include <stdarg.h> 26 #include <stdarg.h>
27 #include <sys/time.h> 27 #include <sys/time.h>
@@ -21,16 +21,16 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,16 +21,16 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_LOG_HPP  
25 -#define SRS_CORE_LOG_HPP 24 +#ifndef SRS_APP_LOG_HPP
  25 +#define SRS_APP_LOG_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_log.hpp> 28 +#include <srs_app_log.hpp>
29 */ 29 */
30 30
31 #include <srs_core.hpp> 31 #include <srs_core.hpp>
32 32
33 -#include <srs_core_st.hpp> 33 +#include <srs_app_st.hpp>
34 #include <srs_kernel_log.hpp> 34 #include <srs_kernel_log.hpp>
35 35
36 #include <string.h> 36 #include <string.h>
@@ -21,14 +21,14 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,14 +21,14 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_pithy_print.hpp> 24 +#include <srs_app_pithy_print.hpp>
25 25
26 #include <stdlib.h> 26 #include <stdlib.h>
27 #include <map> 27 #include <map>
28 28
29 #include <srs_kernel_log.hpp> 29 #include <srs_kernel_log.hpp>
30 -#include <srs_core_config.hpp>  
31 -#include <srs_core_reload.hpp> 30 +#include <srs_app_config.hpp>
  31 +#include <srs_app_reload.hpp>
32 #include <srs_kernel_error.hpp> 32 #include <srs_kernel_error.hpp>
33 33
34 #define SRS_STAGE_DEFAULT_INTERVAL_MS 1200 34 #define SRS_STAGE_DEFAULT_INTERVAL_MS 1200
@@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_PITHY_PRINT_HPP  
25 -#define SRS_CORE_PITHY_PRINT_HPP 24 +#ifndef SRS_APP_PITHY_PRINT_HPP
  25 +#define SRS_APP_PITHY_PRINT_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_pithy_print.hpp> 28 +#include <srs_app_pithy_print.hpp>
29 */ 29 */
30 30
31 #include <srs_core.hpp> 31 #include <srs_core.hpp>
@@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_refer.hpp> 24 +#include <srs_app_refer.hpp>
25 25
26 #include <srs_kernel_error.hpp> 26 #include <srs_kernel_error.hpp>
27 #include <srs_kernel_log.hpp> 27 #include <srs_kernel_log.hpp>
28 -#include <srs_core_config.hpp> 28 +#include <srs_app_config.hpp>
29 29
30 int SrsRefer::check(std::string page_url, SrsConfDirective* refer) 30 int SrsRefer::check(std::string page_url, SrsConfDirective* refer)
31 { 31 {
@@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_REFER_HPP  
25 -#define SRS_CORE_REFER_HPP 24 +#ifndef SRS_APP_REFER_HPP
  25 +#define SRS_APP_REFER_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_refer.hpp> 28 +#include <srs_app_refer.hpp>
29 */ 29 */
30 #include <srs_core.hpp> 30 #include <srs_core.hpp>
31 31
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_reload.hpp> 24 +#include <srs_app_reload.hpp>
25 25
26 using namespace std; 26 using namespace std;
27 27
@@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_KERNEL_RELOAD_HPP  
25 -#define SRS_KERNEL_RELOAD_HPP 24 +#ifndef SRS_APP_RELOAD_HPP
  25 +#define SRS_APP_RELOAD_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_reload.hpp> 28 +#include <srs_app_reload.hpp>
29 */ 29 */
30 #include <srs_core.hpp> 30 #include <srs_core.hpp>
31 31
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_server.hpp> 24 +#include <srs_app_server.hpp>
25 25
26 #include <sys/types.h> 26 #include <sys/types.h>
27 #include <sys/socket.h> 27 #include <sys/socket.h>
@@ -32,8 +32,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -32,8 +32,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 32
33 #include <srs_kernel_log.hpp> 33 #include <srs_kernel_log.hpp>
34 #include <srs_kernel_error.hpp> 34 #include <srs_kernel_error.hpp>
35 -#include <srs_core_client.hpp>  
36 -#include <srs_core_config.hpp> 35 +#include <srs_app_client.hpp>
  36 +#include <srs_app_config.hpp>
37 37
38 #define SERVER_LISTEN_BACKLOG 512 38 #define SERVER_LISTEN_BACKLOG 512
39 #define SRS_TIME_RESOLUTION_MS 500 39 #define SRS_TIME_RESOLUTION_MS 500
@@ -21,20 +21,20 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,20 +21,20 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_SERVER_HPP  
25 -#define SRS_CORE_SERVER_HPP 24 +#ifndef SRS_APP_SERVER_HPP
  25 +#define SRS_APP_SERVER_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_server.hpp> 28 +#include <srs_app_server.hpp>
29 */ 29 */
30 30
31 #include <srs_core.hpp> 31 #include <srs_core.hpp>
32 32
33 #include <vector> 33 #include <vector>
34 34
35 -#include <srs_core_st.hpp>  
36 -#include <srs_core_reload.hpp>  
37 -#include <srs_core_thread.hpp> 35 +#include <srs_app_st.hpp>
  36 +#include <srs_app_reload.hpp>
  37 +#include <srs_app_thread.hpp>
38 38
39 class SrsServer; 39 class SrsServer;
40 class SrsConnection; 40 class SrsConnection;
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_socket.hpp> 24 +#include <srs_app_socket.hpp>
25 25
26 #include <srs_kernel_error.hpp> 26 #include <srs_kernel_error.hpp>
27 27
@@ -21,16 +21,16 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,16 +21,16 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_SOCKET_HPP  
25 -#define SRS_CORE_SOCKET_HPP 24 +#ifndef SRS_APP_SOCKET_HPP
  25 +#define SRS_APP_SOCKET_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_socket.hpp> 28 +#include <srs_app_socket.hpp>
29 */ 29 */
30 30
31 #include <srs_core.hpp> 31 #include <srs_core.hpp>
32 32
33 -#include <srs_core_st.hpp> 33 +#include <srs_app_st.hpp>
34 #include <srs_protocol_io.hpp> 34 #include <srs_protocol_io.hpp>
35 35
36 /** 36 /**
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_source.hpp> 24 +#include <srs_app_source.hpp>
25 25
26 #include <algorithm> 26 #include <algorithm>
27 using namespace std; 27 using namespace std;
@@ -30,11 +30,11 @@ using namespace std; @@ -30,11 +30,11 @@ using namespace std;
30 #include <srs_protocol_rtmp_stack.hpp> 30 #include <srs_protocol_rtmp_stack.hpp>
31 #include <srs_core_autofree.hpp> 31 #include <srs_core_autofree.hpp>
32 #include <srs_protocol_amf0.hpp> 32 #include <srs_protocol_amf0.hpp>
33 -#include <srs_core_codec.hpp>  
34 -#include <srs_core_hls.hpp>  
35 -#include <srs_core_forward.hpp>  
36 -#include <srs_core_config.hpp>  
37 -#include <srs_core_encoder.hpp> 33 +#include <srs_app_codec.hpp>
  34 +#include <srs_app_hls.hpp>
  35 +#include <srs_app_forward.hpp>
  36 +#include <srs_app_config.hpp>
  37 +#include <srs_app_encoder.hpp>
38 #include <srs_protocol_rtmp.hpp> 38 #include <srs_protocol_rtmp.hpp>
39 39
40 #define CONST_MAX_JITTER_MS 500 40 #define CONST_MAX_JITTER_MS 500
@@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_SOURCE_HPP  
25 -#define SRS_CORE_SOURCE_HPP 24 +#ifndef SRS_APP_SOURCE_HPP
  25 +#define SRS_APP_SOURCE_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_source.hpp> 28 +#include <srs_app_source.hpp>
29 */ 29 */
30 30
31 #include <srs_core.hpp> 31 #include <srs_core.hpp>
@@ -34,8 +34,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -34,8 +34,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 #include <vector> 34 #include <vector>
35 #include <string> 35 #include <string>
36 36
37 -#include <srs_core_st.hpp>  
38 -#include <srs_core_reload.hpp> 37 +#include <srs_app_st.hpp>
  38 +#include <srs_app_reload.hpp>
39 39
40 class SrsSource; 40 class SrsSource;
41 class SrsCommonMessage; 41 class SrsCommonMessage;
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_st.hpp> 24 +#include <srs_app_st.hpp>
25 25
26 void srs_close_stfd(st_netfd_t& stfd) 26 void srs_close_stfd(st_netfd_t& stfd)
27 { 27 {
@@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,11 +21,11 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_ST_HPP  
25 -#define SRS_CORE_ST_HPP 24 +#ifndef SRS_APP_ST_HPP
  25 +#define SRS_APP_ST_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_st.hpp> 28 +#include <srs_app_st.hpp>
29 */ 29 */
30 30
31 #include <srs_core.hpp> 31 #include <srs_core.hpp>
@@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#include <srs_core_thread.hpp> 24 +#include <srs_app_thread.hpp>
25 25
26 #include <srs_kernel_error.hpp> 26 #include <srs_kernel_error.hpp>
27 #include <srs_kernel_log.hpp> 27 #include <srs_kernel_log.hpp>
@@ -21,15 +21,15 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN @@ -21,15 +21,15 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 -#ifndef SRS_CORE_THREAD_HPP  
25 -#define SRS_CORE_THREAD_HPP 24 +#ifndef SRS_APP_THREAD_HPP
  25 +#define SRS_APP_THREAD_HPP
26 26
27 /* 27 /*
28 -#include <srs_core_thread.hpp> 28 +#include <srs_app_thread.hpp>
29 */ 29 */
30 #include <srs_core.hpp> 30 #include <srs_core.hpp>
31 31
32 -#include <srs_core_st.hpp> 32 +#include <srs_app_st.hpp>
33 33
34 /** 34 /**
35 * the handler for the thread, callback interface. 35 * the handler for the thread, callback interface.
@@ -34,10 +34,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -34,10 +34,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 #include <srs_protocol_amf0.hpp> 34 #include <srs_protocol_amf0.hpp>
35 #include <srs_core_autofree.hpp> 35 #include <srs_core_autofree.hpp>
36 #include <srs_kernel_stream.hpp> 36 #include <srs_kernel_stream.hpp>
37 -#include <srs_core_socket.hpp>  
38 -#include <srs_core_config.hpp>  
39 -#include <srs_core_log.hpp>  
40 -#include <srs_core_server.hpp> 37 +#include <srs_app_socket.hpp>
  38 +#include <srs_app_config.hpp>
  39 +#include <srs_app_log.hpp>
  40 +#include <srs_app_server.hpp>
41 41
42 // kernel module. 42 // kernel module.
43 ISrsLog* _srs_log = new SrsFastLog(); 43 ISrsLog* _srs_log = new SrsFastLog();
@@ -23,9 +23,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -23,9 +23,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 23
24 #include <srs_kernel_log.hpp> 24 #include <srs_kernel_log.hpp>
25 #include <srs_kernel_error.hpp> 25 #include <srs_kernel_error.hpp>
26 -#include <srs_core_server.hpp>  
27 -#include <srs_core_config.hpp>  
28 -#include <srs_core_log.hpp> 26 +#include <srs_app_server.hpp>
  27 +#include <srs_app_config.hpp>
  28 +#include <srs_app_log.hpp>
29 29
30 // kernel module. 30 // kernel module.
31 ISrsLog* _srs_log = new SrsFastLog(); 31 ISrsLog* _srs_log = new SrsFastLog();
@@ -37,42 +37,42 @@ file @@ -37,42 +37,42 @@ file
37 ..\rtmp\srs_protocol_utility.hpp, 37 ..\rtmp\srs_protocol_utility.hpp,
38 ..\rtmp\srs_protocol_utility.cpp, 38 ..\rtmp\srs_protocol_utility.cpp,
39 app readonly separator, 39 app readonly separator,
40 - ..\app\srs_core_bandwidth.hpp,  
41 - ..\app\srs_core_bandwidth.cpp,  
42 - ..\app\srs_core_client.hpp,  
43 - ..\app\srs_core_client.cpp,  
44 - ..\app\srs_core_codec.hpp,  
45 - ..\app\srs_core_codec.cpp,  
46 - ..\app\srs_core_conn.hpp,  
47 - ..\app\srs_core_conn.cpp,  
48 - ..\app\srs_core_config.hpp,  
49 - ..\app\srs_core_config.cpp,  
50 - ..\app\srs_core_encoder.hpp,  
51 - ..\app\srs_core_encoder.cpp,  
52 - ..\app\srs_core_forward.hpp,  
53 - ..\app\srs_core_forward.cpp,  
54 - ..\app\srs_core_hls.hpp,  
55 - ..\app\srs_core_hls.cpp,  
56 - ..\app\srs_core_http.hpp,  
57 - ..\app\srs_core_http.cpp,  
58 - ..\app\srs_core_log.hpp,  
59 - ..\app\srs_core_log.cpp,  
60 - ..\app\srs_core_refer.hpp,  
61 - ..\app\srs_core_refer.cpp,  
62 - ..\app\srs_core_reload.hpp,  
63 - ..\app\srs_core_reload.cpp,  
64 - ..\app\srs_core_pithy_print.hpp,  
65 - ..\app\srs_core_pithy_print.cpp,  
66 - ..\app\srs_core_thread.hpp,  
67 - ..\app\srs_core_thread.cpp,  
68 - ..\app\srs_core_server.hpp,  
69 - ..\app\srs_core_server.cpp,  
70 - ..\app\srs_core_st.hpp,  
71 - ..\app\srs_core_st.cpp,  
72 - ..\app\srs_core_socket.hpp,  
73 - ..\app\srs_core_socket.cpp,  
74 - ..\app\srs_core_source.hpp,  
75 - ..\app\srs_core_source.cpp, 40 + ..\app\srs_app_bandwidth.hpp,
  41 + ..\app\srs_app_bandwidth.cpp,
  42 + ..\app\srs_app_client.hpp,
  43 + ..\app\srs_app_client.cpp,
  44 + ..\app\srs_app_codec.hpp,
  45 + ..\app\srs_app_codec.cpp,
  46 + ..\app\srs_app_conn.hpp,
  47 + ..\app\srs_app_conn.cpp,
  48 + ..\app\srs_app_config.hpp,
  49 + ..\app\srs_app_config.cpp,
  50 + ..\app\srs_app_encoder.hpp,
  51 + ..\app\srs_app_encoder.cpp,
  52 + ..\app\srs_app_forward.hpp,
  53 + ..\app\srs_app_forward.cpp,
  54 + ..\app\srs_app_hls.hpp,
  55 + ..\app\srs_app_hls.cpp,
  56 + ..\app\srs_app_http.hpp,
  57 + ..\app\srs_app_http.cpp,
  58 + ..\app\srs_app_log.hpp,
  59 + ..\app\srs_app_log.cpp,
  60 + ..\app\srs_app_refer.hpp,
  61 + ..\app\srs_app_refer.cpp,
  62 + ..\app\srs_app_reload.hpp,
  63 + ..\app\srs_app_reload.cpp,
  64 + ..\app\srs_app_pithy_print.hpp,
  65 + ..\app\srs_app_pithy_print.cpp,
  66 + ..\app\srs_app_thread.hpp,
  67 + ..\app\srs_app_thread.cpp,
  68 + ..\app\srs_app_server.hpp,
  69 + ..\app\srs_app_server.cpp,
  70 + ..\app\srs_app_st.hpp,
  71 + ..\app\srs_app_st.cpp,
  72 + ..\app\srs_app_socket.hpp,
  73 + ..\app\srs_app_socket.cpp,
  74 + ..\app\srs_app_source.hpp,
  75 + ..\app\srs_app_source.cpp,
76 research readonly separator, 76 research readonly separator,
77 ..\..\research\librtmp\srs_play.c, 77 ..\..\research\librtmp\srs_play.c,
78 ..\..\research\librtmp\srs_publish.c, 78 ..\..\research\librtmp\srs_publish.c,