openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
wrappers.cpp File Reference
#include <unistd.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <glib.h>
#include <vector>
#include <string>
#include "wrappers.h"
#include <lib/base/ebase.h>
#include <lib/base/eerror.h>

Functions

int Select (int maxfd, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
 
ssize_t singleRead (int fd, void *buf, size_t count)
 
ssize_t timedRead (int fd, void *buf, size_t count, int initialtimeout, int interbytetimeout)
 
ssize_t readLine (int fd, char **buffer, size_t *bufsize)
 
int Connect (const char *hostname, int port, int timeoutsec)
 
ssize_t writeAll (int fd, const void *buf, size_t count)
 
std::string base64encode (const std::string str)
 
std::string base64decode (const std::string hash)
 
std::string readLink (const std::string &link)
 
bool contains (const std::string &str, const std::string &substr)
 
bool endsWith (const std::string &str, const std::string &suffix)
 
bool startsWith (const std::string &str, const std::string &prefix)
 

Function Documentation

◆ base64decode()

std::string base64decode ( const std::string  hash)

◆ base64encode()

std::string base64encode ( const std::string  str)

◆ Connect()

int Connect ( const char *  hostname,
int  port,
int  timeoutsec 
)

◆ contains()

bool contains ( const std::string &  str,
const std::string &  substr 
)

◆ endsWith()

bool endsWith ( const std::string &  str,
const std::string &  suffix 
)

◆ readLine()

ssize_t readLine ( int  fd,
char **  buffer,
size_t *  bufsize 
)

◆ readLink()

std::string readLink ( const std::string &  link)

◆ Select()

int Select ( int  maxfd,
fd_set *  readfds,
fd_set *  writefds,
fd_set *  exceptfds,
struct timeval *  timeout 
)

◆ singleRead()

ssize_t singleRead ( int  fd,
void *  buf,
size_t  count 
)

◆ startsWith()

bool startsWith ( const std::string &  str,
const std::string &  prefix 
)

◆ timedRead()

ssize_t timedRead ( int  fd,
void *  buf,
size_t  count,
int  initialtimeout,
int  interbytetimeout 
)

◆ writeAll()

ssize_t writeAll ( int  fd,
const void *  buf,
size_t  count 
)