newspeoplefor developersdocumentationdownloads

nHttpServer Class Reference

#include <nhttpserver.h>

Inheritance diagram for nHttpServer:

nRoot nObject nNode nReferenced nSignalEmitter List of all members.

Detailed Description

A Nebula2 server object which implements a simple Http client (confusing I know ;).

(C) 2004 RadonLabs GmbH

Definition at line 19 of file nhttpserver.h.


Public Member Functions

 nHttpServer ()
 constructor
virtual ~nHttpServer ()
 destructor
bool Connect (const nString &serverName)
 open a http connection
void Disconnect ()
 close the current http connection
bool IsConnected () const
 return true if currently connected
bool Get (const nString &object, nString &result)
 send a GET request to the server
bool Post (const nString &object, const nString &postData, nString &result)
 send a POST request to the server

Constructor & Destructor Documentation

nHttpServer::nHttpServer  ) 
 

constructor

Definition at line 13 of file nhttpserver_main.cc.

nHttpServer::~nHttpServer  )  [virtual]
 

destructor

Definition at line 21 of file nhttpserver_main.cc.


Member Function Documentation

bool nHttpServer::Connect const nString serverName  ) 
 

open a http connection

Definition at line 30 of file nhttpserver_main.cc.

void nHttpServer::Disconnect  ) 
 

close the current http connection

Definition at line 54 of file nhttpserver_main.cc.

bool nHttpServer::IsConnected  )  const
 

return true if currently connected

Definition at line 68 of file nhttpserver_main.cc.

bool nHttpServer::Get const nString object,
nString result
 

send a GET request to the server

Definition at line 81 of file nhttpserver_main.cc.

bool nHttpServer::Post const nString object,
const nString postData,
nString result
 

send a POST request to the server

Definition at line 96 of file nhttpserver_main.cc.


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

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.