OpenZWave Library  1.6.770
Namespaces | Macros | Typedefs | Functions
HttpClient.cpp File Reference
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sstream>
#include <cctype>
#include <cerrno>
#include <algorithm>
#include <assert.h>
#include <iostream>
#include <string>
#include "platform/HttpClient.h"
#include "platform/Log.h"
#include "Utils.h"
+ Include dependency graph for HttpClient.cpp:

Namespaces

 OpenZWave
 
 OpenZWave::Internal
 
 OpenZWave::Internal::Platform
 

Macros

#define SOCKET_ERROR   (-1)
 
#define INVALID_SOCKET   (SOCKET)(~0)
 
#define SOCKETVALID(s)   ((s) != INVALID_SOCKET)
 
#define STRNICMP   strncasecmp
 
#define traceprint(...)   {}
 
#define DEFAULT_BUFSIZE   4096
 

Typedefs

typedef intptr_t SOCKET
 

Functions

bool OpenZWave::Internal::Platform::HasSSL ()
 Indicates if we support HTTPS requestsIndicates if we support HTTPS requests. More...
 
int OpenZWave::Internal::Platform::_GetError ()
 
std::string OpenZWave::Internal::Platform::_GetErrorStr (int e)
 
bool OpenZWave::Internal::Platform::InitNetwork ()
 Initialize the Network for HTTP requestsInitializes the Network for HTTP requests. More...
 
void OpenZWave::Internal::Platform::StopNetwork ()
 Stop the Network for HTTP requestsStops the Network for HTTP requests and releases resources associated with it. More...
 
bool OpenZWave::Internal::Platform::SplitURI (const std::string &uri, std::string &protocol, std::string &host, std::string &file, int &port, bool &useSSL)
 
void OpenZWave::Internal::Platform::URLEncode (const std::string &s, std::string &enc)
 Encode a String suitable for sending as a URL request (eg Get)Encode a String so it can be sent as part of a URL request. More...
 

Macro Definition Documentation

◆ DEFAULT_BUFSIZE

#define DEFAULT_BUFSIZE   4096

◆ INVALID_SOCKET

#define INVALID_SOCKET   (SOCKET)(~0)

◆ SOCKET_ERROR

#define SOCKET_ERROR   (-1)

◆ SOCKETVALID

#define SOCKETVALID (   s)    ((s) != INVALID_SOCKET)

◆ STRNICMP

#define STRNICMP   strncasecmp

◆ traceprint

#define traceprint (   ...)    {}

Typedef Documentation

◆ SOCKET

typedef intptr_t SOCKET