返回端口号

This commit is contained in:
xiongziliang
2018-02-28 10:58:36 +08:00
parent fe4da29fb1
commit d9dea060d3
2 changed files with 18 additions and 18 deletions

View File

@@ -56,24 +56,24 @@ API_EXPORT void API_CALL setGlobalOptionString(const char *key,const char *val);
/*
* 描述:创建Http服务器
* 参数:port:htt监听端口推荐80
* 返回值:0:成功;-1:失败
* 参数:port:htt监听端口推荐80传入0则随机分配
* 返回值:0:失败,非0:端口号
*/
API_EXPORT int API_CALL initHttpServer(unsigned short port);
API_EXPORT unsigned short API_CALL initHttpServer(unsigned short port);
/*
* 描述:创建RTSP服务器
* 参数:port:rtsp监听端口推荐554
* 返回值:0:成功;-1:失败
* 参数:port:rtsp监听端口推荐554传入0则随机分配
* 返回值:0:失败,非0:端口号
*/
API_EXPORT int API_CALL initRtspServer(unsigned short port);
API_EXPORT unsigned short API_CALL initRtspServer(unsigned short port);
/*
* 描述:创建RTMP服务器
* 参数:port:rtmp监听端口推荐1935
* 返回值:0:成功;-1:失败
* 参数:port:rtmp监听端口推荐1935传入0则随机分配
* 返回值:0:失败,非0:端口号
*/
API_EXPORT int API_CALL initRtmpServer(unsigned short port);
API_EXPORT unsigned short API_CALL initRtmpServer(unsigned short port);
/////////////////////////日志////////////////////////////////