summaryrefslogtreecommitdiff
path: root/svdrpclient.h
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-10-29 20:03:01 +0100
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-10-29 20:03:01 +0100
commitac4560560513d838450e86c25611d950cefc44ee (patch)
tree647eb69cf384142a7313e8b957ec90708226a0a5 /svdrpclient.h
parent06ca46d943e3d7bbf315fcfb8c4653523fae66de (diff)
downloadvdr-plugin-epgsearch-ac4560560513d838450e86c25611d950cefc44ee.tar.gz
vdr-plugin-epgsearch-ac4560560513d838450e86c25611d950cefc44ee.tar.bz2
extended internal variable syntax with 'connect'
Diffstat (limited to 'svdrpclient.h')
-rw-r--r--svdrpclient.h31
1 files changed, 1 insertions, 30 deletions
diff --git a/svdrpclient.h b/svdrpclient.h
index aa021a1..8462fef 100644
--- a/svdrpclient.h
+++ b/svdrpclient.h
@@ -25,8 +25,6 @@ The project's page is at http://winni.vdr-developer.org/epgsearch
#define __SVDRPCLIENT_H
#include <sys/socket.h>
-#include <netdb.h>
-#include <arpa/inet.h>
#include "log.h"
#define SVDRPCONNECT 220
@@ -39,7 +37,7 @@ class cSVDRPClient {
public:
bool bConnected;
- cSVDRPClient(int Port)
+ cSVDRPClient()
{
bConnected = false;
sock = socket(PF_INET, SOCK_STREAM, 0);
@@ -64,33 +62,6 @@ public:
LogFile.eSysLog("EPGSearch: could not connect to VDR!");
}
- long getAddrFromString(char* hostnameOrIp, struct sockaddr_in* addr)
- {
- unsigned long ip;
-
- struct hostent * he;
-
- if(hostnameOrIp==NULL || addr==NULL)
- return -1;
-
- ip=inet_addr(hostnameOrIp);
-
- if(ip!=INADDR_NONE)
- {
- addr->sin_addr.s_addr=ip;
- return 0;
- }
- else
- {
- he=gethostbyname(hostnameOrIp);
- if(he==NULL)
- return -1;
- else
- memcpy(&(addr->sin_addr),he->h_addr_list[0],4);
- return 0;
- }
- }
-
bool SendCmd(const char* cmd)
{
if (!bConnected)