예제 #1
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
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();
}
예제 #2
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteUsnRoot(IWriterHttpHeader& aWriter, const Brx& aUuid)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderUsn);
    WriteUuid(stream, aUuid);
    stream.Write(kUsnSeparator);
    WriteRoot(stream);
    stream.WriteFlush();
}
예제 #3
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
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();
}
예제 #4
0
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();
}
예제 #5
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();
}
예제 #6
0
파일: SsdpDv.cpp 프로젝트: broonie/ohNet
void Ssdp::WriteNextBootId(DvStack& aDvStack, IWriterHttpHeader& aWriter)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderNextBootId);
    stream.WriteUint(aDvStack.NextBootId());
    stream.WriteFlush();
}
예제 #7
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteSearchPort(IWriterHttpHeader& aWriter, TUint aPort)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderSearchPort);
    stream.WriteUint(aPort);
    stream.WriteFlush();
}
예제 #8
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteConfigId(IWriterHttpHeader& aWriter, TUint aConfigId)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderConfigId);
    stream.WriteUint(aConfigId);
    stream.WriteFlush();
}
예제 #9
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteUsnUuid(IWriterHttpHeader& aWriter, const Brx& aUuid)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderUsn);
    WriteUuid(stream, aUuid);
    stream.WriteFlush();
}
예제 #10
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
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();
}
예제 #11
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteNotificationTypeUuid(IWriterHttpHeader& aWriter, const Brx& aUuid)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderNt);
    WriteUuid(stream, aUuid);
    stream.WriteFlush();
}
예제 #12
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteNotificationTypeRoot(IWriterHttpHeader& aWriter)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderNt);
    WriteRoot(stream);
    stream.WriteFlush();
}
예제 #13
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteExt(IWriterHttpHeader& aWriter)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderExt);
    stream.WriteFlush();
}
예제 #14
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteLocation(IWriterHttpHeader& aWriter, const Brx& aUrl)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderLocation);
    stream.Write(aUrl);
    stream.WriteFlush();
}
예제 #15
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteSearchTypeRoot(IWriterHttpHeader& aWriter)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderSt);
    WriteRoot(stream);
    stream.WriteFlush();
}
예제 #16
0
파일: Ssdp.cpp 프로젝트: DoomHammer/ohNet
void Ssdp::WriteMx(IWriterHttpHeader& aWriter, TUint aSeconds)
{
    IWriterAscii& stream = aWriter.WriteHeaderField(Ssdp::kHeaderMx);
    stream.WriteUint(aSeconds);
    stream.WriteFlush();
}