From b2b925d1a933c9129eb84699e9893d80e7e9534d Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Tue, 8 Feb 2005 17:22:35 +0000 Subject: - transfer --- server/connectionHTTP.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'server/connectionHTTP.c') diff --git a/server/connectionHTTP.c b/server/connectionHTTP.c index 044ad61..3fd8c27 100644 --- a/server/connectionHTTP.c +++ b/server/connectionHTTP.c @@ -1,5 +1,5 @@ /* - * $Id: connectionHTTP.c,v 1.3 2005/02/08 15:34:38 lordjaxom Exp $ + * $Id: connectionHTTP.c,v 1.4 2005/02/08 17:22:35 lordjaxom Exp $ */ #include "server/connectionHTTP.h" @@ -63,7 +63,7 @@ bool cConnectionHTTP::Command(char *Cmd) { || m_Channel->Vpid() == 1 || m_Channel->Vpid() == 0x1FFF)) { return Respond("HTTP/1.0 200 OK") && Respond("Content-Type: audio/mpeg") - && Respond((cTBString)"icy-name: " + m_Channel->Name()) + && Respond((std::string)"icy-name: " + m_Channel->Name()) && Respond(""); } else { return Respond("HTTP/1.0 200 OK") @@ -86,20 +86,20 @@ bool cConnectionHTTP::Command(char *Cmd) { void cConnectionHTTP::Flushed(void) { if (m_Status == hsListing) { - cTBString line; - if (m_ListChannel == NULL) { Respond(""); DeferClose(); return; } + std::string line; if (m_ListChannel->GroupSep()) - line.Format("
  • --- %s ---
  • ", m_ListChannel->Name()); + line = (std::string)"
  • --- " + m_ListChannel->Name() + "---
  • "; else - line.Format("
  • %s
  • ", - (const char*)LocalIp(), StreamdevServerSetup.HTTPServerPort, - (const char*)m_ListChannel->GetChannelID().ToString(), m_ListChannel->Name()); + line = (std::string)"
  • GetChannelID().ToString() + "\">" + + m_ListChannel->Name() + "
  • "; if (!Respond(line)) DeferClose(); m_ListChannel = Channels.Next(m_ListChannel); -- cgit v1.2.3