OpenZWave Library 1.6.1914
Loading...
Searching...
No Matches
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

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

Macros

#define SOCKET_ERROR   (-1)
#define INVALID_SOCKET   (SOCKET)(~0)
#define SOCKETVALID(s)
#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 requests.
int OpenZWave::Internal::Platform::_GetError ()
std::string OpenZWave::Internal::Platform::_GetErrorStr (int e)
bool OpenZWave::Internal::Platform::InitNetwork ()
 Initialize the Network for HTTP requests.
void OpenZWave::Internal::Platform::StopNetwork ()
 Stop the Network for HTTP requests.
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).

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)
Value:
#define INVALID_SOCKET
Definition HttpClient.cpp:43

◆ STRNICMP

#define STRNICMP   strncasecmp

◆ traceprint

#define traceprint ( ...)
Value:
{}

Typedef Documentation

◆ SOCKET

typedef intptr_t SOCKET