Public Member Functions | Private Attributes
NetworkHTTPContentConnecter Class Reference

Connect with a HTTP server and do ONE query. More...

#include <tcp_http.h>

Inheritance diagram for NetworkHTTPContentConnecter:

Public Member Functions

 NetworkHTTPContentConnecter (const NetworkAddress &address, HTTPCallback *callback, const char *url, const char *data=NULL, int depth=0)
 Start the connecting. More...
 ~NetworkHTTPContentConnecter ()
 Free all our allocated data. More...
virtual void OnFailure ()
 Callback for when the connection attempt failed.
virtual void OnConnect (SOCKET s)
 Callback when the connection succeeded. More...

Private Attributes

 Callback to tell that we received some data (or won't).
const char * url
 The URL we want to get at the server.
const char * data
 The data to send.
int depth
 How far we have recursed.
- Private Attributes inherited from TCPConnecter
NetworkAddress address
 Address we're connecting to.

Additional Inherited Members

- Private Member Functions inherited from TCPConnecter
 TCPConnecter (const NetworkAddress &address)
 Create a new connecter for the given address. More...
virtual ~TCPConnecter ()
 Silence the warnings.
- Static Private Member Functions inherited from TCPConnecter
static void CheckCallbacks ()
 Check whether we need to call the callback, i.e. More...
static void KillAll ()
 Kill all connection attempts. More...

Detailed Description

Connect with a HTTP server and do ONE query.

Definition at line 79 of file tcp_http.h.

Constructor & Destructor Documentation

◆ NetworkHTTPContentConnecter()

NetworkHTTPContentConnecter::NetworkHTTPContentConnecter ( const NetworkAddress address,
HTTPCallback callback,
const char *  url,
const char *  data = NULL,
int  depth = 0 

Start the connecting.

addressthe address to connect to
callbackthe callback for HTTP retrieval
urlthe url at the server
datathe data to send
depththe depth (redirect recursion) of the queries

Definition at line 94 of file tcp_http.h.

◆ ~NetworkHTTPContentConnecter()

NetworkHTTPContentConnecter::~NetworkHTTPContentConnecter ( )

Free all our allocated data.

Definition at line 106 of file tcp_http.h.

References free().

Member Function Documentation

◆ OnConnect()

virtual void NetworkHTTPContentConnecter::OnConnect ( SOCKET  s)

Callback when the connection succeeded.

sthe socket that we opened

Reimplemented from TCPConnecter.

Definition at line 117 of file tcp_http.h.

The documentation for this class was generated from the following file: