예제 #1
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
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();
}
예제 #2
0
파일: Timer.cpp 프로젝트: Montellese/ohNet
TInt Time::TimeToWaitFor(Environment& aEnv, TUint aTime)
{
    return (aTime - Os::TimeInMs(aEnv.OsCtx()));
}
예제 #3
0
파일: Timer.cpp 프로젝트: Montellese/ohNet
TUint Time::Now(Environment& aEnv)
{
    return Os::TimeInMs(aEnv.OsCtx());
};