summaryrefslogtreecommitdiff
path: root/client/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/socket.c')
-rw-r--r--client/socket.c48
1 files changed, 1 insertions, 47 deletions
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 <tools/select.h>
@@ -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;