winlin

log the req.

... ... @@ -75,8 +75,13 @@ int SrsClient::do_cycle()
srs_warn("rtmp connect vhost/app failed. ret=%d", ret);
return ret;
}
srs_info("rtmp connect success. tcUrl=%s, schema=%s, vhost=%s, port=%s, app=%s",
req->tcUrl.c_str(), req->schema.c_str(), req->vhost.c_str(), req->port.c_str(),
srs_info("rtmp connect success. tcUrl=%s, pageUrl=%s, swfUrl=%s",
req->tcUrl.c_str(), req->pageUrl.c_str(), req->swfUrl.c_str());
srs_trace("rtmp connect success. "
"tcUrl=%s, pageUrl=%s, swfUrl=%s, schema=%s, vhost=%s, port=%s, app=%s",
req->tcUrl.c_str(), req->pageUrl.c_str(), req->swfUrl.c_str(),
req->schema.c_str(), req->vhost.c_str(), req->port.c_str(),
req->app.c_str());
return ret;
... ...
... ... @@ -112,6 +112,14 @@ int SrsRtmp::connect_app(SrsRequest* req)
}
req->tcUrl = srs_amf0_convert<SrsAmf0String>(prop)->value;
if ((prop = pkt->command_object->ensure_property_string("pageUrl")) != NULL) {
req->pageUrl = srs_amf0_convert<SrsAmf0String>(prop)->value;
}
if ((prop = pkt->command_object->ensure_property_string("swfUrl")) != NULL) {
req->swfUrl = srs_amf0_convert<SrsAmf0String>(prop)->value;
}
return ret;
}
... ...
... ... @@ -42,6 +42,8 @@ class SrsProtocol;
struct SrsRequest
{
std::string tcUrl;
std::string pageUrl;
std::string swfUrl;
std::string schema;
std::string vhost;
... ...