示例#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();
}