summaryrefslogtreecommitdiff
path: root/client/socket.c
diff options
context:
space:
mode:
authorschmirl <schmirl>2010-06-08 05:56:14 +0000
committerschmirl <schmirl>2010-06-08 05:56:14 +0000
commita43455f660040140fcfd9401ceb81f1e13f8bd7d (patch)
tree88dfdd007f21aa3103f9b97b3968b11f12cbd1ec /client/socket.c
parentfc99a72467ec2a284b4242dcf9dc90689a295a99 (diff)
downloadvdr-plugin-streamdev-a43455f660040140fcfd9401ceb81f1e13f8bd7d.tar.gz
vdr-plugin-streamdev-a43455f660040140fcfd9401ceb81f1e13f8bd7d.tar.bz2
dropped "Synchronize EPG" feature
Modified Files: Tag: v0_4 HISTORY README i18n.c streamdev-client.c streamdev-client.h client/device.c client/setup.c client/setup.h client/socket.c client/socket.h
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 569fd43..e766f7c 100644
--- a/client/socket.c
+++ b/client/socket.c
@@ -1,5 +1,5 @@
/*
- * $Id: socket.c,v 1.11 2008/04/07 14:40:40 schmirl Exp $
+ * $Id: socket.c,v 1.11.2.1 2010/06/08 05:56:15 schmirl Exp $
*/
#include <tools/select.h>
@@ -301,52 +301,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;