void Ssdp::WriteMaxAge(Environment& aEnv, IWriterHttpHeader& aWriter) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderCacheControl); stream.Write(kSsdpMaxAge); stream.Write(kSsdpMaxAgeSeparator); stream.WriteUint(aEnv.InitParams()->DvMaxUpdateTimeSecs()); stream.WriteFlush(); }
void Ssdp::WriteUsnRoot(IWriterHttpHeader& aWriter, const Brx& aUuid) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderUsn); WriteUuid(stream, aUuid); stream.Write(kUsnSeparator); WriteRoot(stream); stream.WriteFlush(); }
void Ssdp::WriteUsnServiceType(IWriterHttpHeader& aWriter, const Brx& aDomain, const Brx& aType, TUint aVersion, const Brx& aUuid) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderUsn); WriteUuid(stream, aUuid); stream.Write(kUsnSeparator); WriteServiceType(stream, aDomain, aType, aVersion); stream.WriteFlush(); }
void DviSessionUpnp::WriteServerHeader(IWriterHttpHeader& aWriter) { IWriterAscii& stream = aWriter.WriteHeaderField(Brn("SERVER")); TUint major, minor; Brn osName = Os::GetPlatformNameAndVersion(major, minor); stream.Write(osName); stream.Write('/'); stream.WriteUint(major); stream.Write('.'); stream.WriteUint(minor); stream.Write(Brn(" UPnP/1.1 ohNet/")); Stack::GetVersion(major, minor); stream.WriteUint(major); stream.Write('.'); stream.WriteUint(minor); stream.WriteFlush(); }
void Ssdp::WriteServer(Environment& aEnv, IWriterHttpHeader& aWriter) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderServer); TUint major, minor; Brn osName = Os::GetPlatformNameAndVersion(aEnv.OsCtx(), major, minor); stream.Write(osName); stream.Write('/'); stream.WriteUint(major); stream.Write('.'); stream.WriteUint(minor); stream.Write(Brn(" UPnP/1.1 ohNet/")); aEnv.GetVersion(major, minor); stream.WriteUint(major); stream.Write('.'); stream.WriteUint(minor); stream.WriteFlush(); }
void Ssdp::WriteSubTypeAlive(IWriterHttpHeader& aWriter) { aWriter.WriteHeader(Ssdp::kHeaderNts, kAlive); }
void Ssdp::WriteUsnUuid(IWriterHttpHeader& aWriter, const Brx& aUuid) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderUsn); WriteUuid(stream, aUuid); stream.WriteFlush(); }
void Ssdp::WriteMx(IWriterHttpHeader& aWriter, TUint aSeconds) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderMx); stream.WriteUint(aSeconds); stream.WriteFlush(); }
void Ssdp::WriteNotificationTypeServiceType(IWriterHttpHeader& aWriter, const Brx& aDomain, const Brx& aType, TUint aVersion) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderNt); WriteServiceType(stream, aDomain, aType, aVersion); stream.WriteFlush(); }
void Ssdp::WriteNotificationTypeUuid(IWriterHttpHeader& aWriter, const Brx& aUuid) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderNt); WriteUuid(stream, aUuid); stream.WriteFlush(); }
void Ssdp::WriteNotificationTypeRoot(IWriterHttpHeader& aWriter) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderNt); WriteRoot(stream); stream.WriteFlush(); }
void Ssdp::WriteMan(IWriterHttpHeader& aWriter) { aWriter.WriteHeader(Ssdp::kHeaderMan, kMsearchDiscover); }
void Ssdp::WriteNextBootId(DvStack& aDvStack, IWriterHttpHeader& aWriter) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderNextBootId); stream.WriteUint(aDvStack.NextBootId()); stream.WriteFlush(); }
void Ssdp::WriteConfigId(IWriterHttpHeader& aWriter, TUint aConfigId) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderConfigId); stream.WriteUint(aConfigId); stream.WriteFlush(); }
void Ssdp::WriteLocation(IWriterHttpHeader& aWriter, const Brx& aUrl) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderLocation); stream.Write(aUrl); stream.WriteFlush(); }
void Ssdp::WriteSearchTypeRoot(IWriterHttpHeader& aWriter) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderSt); WriteRoot(stream); stream.WriteFlush(); }
void Ssdp::WriteSearchTypeAll(IWriterHttpHeader& aWriter) { aWriter.WriteHeader(Ssdp::kHeaderSt, kMsearchAll); }
void Ssdp::WriteSearchPort(IWriterHttpHeader& aWriter, TUint aPort) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderSearchPort); stream.WriteUint(aPort); stream.WriteFlush(); }
void Ssdp::WriteSubTypeByeBye(IWriterHttpHeader& aWriter) { aWriter.WriteHeader(Ssdp::kHeaderNts, kByeBye); }
void Ssdp::WriteExt(IWriterHttpHeader& aWriter) { IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderExt); stream.WriteFlush(); }
void Ssdp::WriteHost(IWriterHttpHeader& aWriter) { aWriter.WriteHeader(Ssdp::kHeaderHost, Ssdp::kMulticastAddressAndPort); }