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(); }
TInt Time::TimeToWaitFor(Environment& aEnv, TUint aTime) { return (aTime - Os::TimeInMs(aEnv.OsCtx())); }
TUint Time::Now(Environment& aEnv) { return Os::TimeInMs(aEnv.OsCtx()); };