winlin

refine conf, add comments for other listen type

... ... @@ -3,7 +3,6 @@
# @see full.conf for detail config.
listen 19350;
chunk_size 65000;
vhost __defaultVhost__ {
enabled on;
gop_cache on;
... ...
... ... @@ -670,6 +670,7 @@ int SrsConfig::parse_file(const char* filename)
}
SrsConfDirective* conf = NULL;
// check rtmp port specified by directive listen.
if ((conf = get_listen()) == NULL || conf->args.size() == 0) {
ret = ERROR_SYSTEM_CONFIG_INVALID;
srs_error("line %d: conf error, "
... ...
... ... @@ -325,7 +325,7 @@ int SrsServer::accept_client(SrsListenerType type, st_netfd_t client_stfd)
if (type == SrsListenerStream) {
conn = new SrsClient(this, client_stfd);
} else {
// handler others
// TODO: FIXME: handler others
}
srs_assert(conn);
... ...