diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-10-29 20:03:01 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-10-29 20:03:01 +0100 |
commit | ac4560560513d838450e86c25611d950cefc44ee (patch) | |
tree | 647eb69cf384142a7313e8b957ec90708226a0a5 /svdrpclient.h | |
parent | 06ca46d943e3d7bbf315fcfb8c4653523fae66de (diff) | |
download | vdr-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.h | 31 |
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) |