From 11b22d9f33d50f20cba1eaee2aadb55d3580d879 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Thu, 2 Dec 2010 09:48:23 +0100 Subject: Streamdev 0.5.0-rc1 --- client/socket.c | 48 +----------------------------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) (limited to 'client/socket.c') diff --git a/client/socket.c b/client/socket.c index 02f501d..bd2f9ba 100644 --- a/client/socket.c +++ b/client/socket.c @@ -1,5 +1,5 @@ /* - * $Id: socket.c,v 1.12 2008/04/08 14:18:16 schmirl Exp $ + * $Id: socket.c,v 1.13 2010/06/08 05:55:17 schmirl Exp $ */ #include @@ -300,52 +300,6 @@ bool cClientSocket::CloseDvr(void) { return true; } -bool cClientSocket::SynchronizeEPG(void) { - std::string buffer; - bool result; - FILE *epgfd; - - if (!CheckConnection()) return false; - - isyslog("Streamdev: Synchronizing EPG from server\n"); - - CMD_LOCK; - - if (!Command("LSTE")) - return false; - - if ((epgfd = tmpfile()) == NULL) { - esyslog("ERROR: Streamdev: Error while processing EPG data: %s", - strerror(errno)); - return false; - } - - while ((result = Expect(215, &buffer))) { - if (buffer[3] == ' ') break; - fputs(buffer.c_str() + 4, epgfd); - fputc('\n', epgfd); - } - - if (!result) { - if (errno == 0) - esyslog("ERROR: Streamdev: Couldn't fetch EPG data from %s:%d", - RemoteIp().c_str(), RemotePort()); - fclose(epgfd); - return false; - } - - rewind(epgfd); - if (cSchedules::Read(epgfd)) - cSchedules::Cleanup(true); - else { - esyslog("ERROR: Streamdev: Parsing EPG data failed"); - fclose(epgfd); - return false; - } - fclose(epgfd); - return true; -} - bool cClientSocket::Quit(void) { bool res; -- cgit v1.2.3