upnp/upnpstack/controlpointbase/src/upnpcpbdescriptionagent.cpp
branchRCL_3
changeset 30 594d15129e2c
parent 29 5c72fd91570d
equal deleted inserted replaced
29:5c72fd91570d 30:594d15129e2c
   213 		    {
   213 		    {
   214 		    CleanupStack::PushL( deviceDescription );
   214 		    CleanupStack::PushL( deviceDescription );
   215             RBuf8 description;
   215             RBuf8 description;
   216             if(deviceDescription->UrlBase().Length()!=0)
   216             if(deviceDescription->UrlBase().Length()!=0)
   217                 {
   217                 {
   218                 description.CreateL(aDeviceDescPath.Length()+deviceDescription->UrlBase().Length());
   218                 description.Create(aDeviceDescPath.Length()+deviceDescription->UrlBase().Length());
   219                 description.Copy(deviceDescription->UrlBase());
   219                 description.Copy(deviceDescription->UrlBase());
   220                 TInt firstSlash(aDeviceDescPath.Locate( KSlash8()[0] ) );		
   220                 TInt firstSlash(aDeviceDescPath.Locate( KSlash8()[0] ) );		
   221                 if(firstSlash==0)
   221                 if(firstSlash==0)
   222                     description.Append( aDeviceDescPath.Mid( firstSlash+1,aDeviceDescPath.Length()-1 ) );
   222                     description.Append( aDeviceDescPath.Mid( firstSlash+1,aDeviceDescPath.Length()-1 ) );
   223                 else
   223                 else
   226                 description.Close();
   226                 description.Close();
   227                 }
   227                 }
   228             else
   228             else
   229                 {
   229                 {
   230                 TBuf<25> ipBuf;
   230                 TBuf<25> ipBuf;
   231                 description.CreateL(KUrlMaxLength);
   231                 description.Create(KUrlMaxLength);
   232                 description.Copy(KHttp());
   232                 description.Copy(KHttp());
   233                 
   233                 
   234                 aAddr.Output ( ipBuf);
   234                 aAddr.Output ( ipBuf);
   235                 description.Append(ipBuf);
   235                 description.Append(ipBuf);
   236                 description.Append(_L8(":"));
   236                 description.Append(_L8(":"));