2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.
Main Page | Class Hierarchy | Class List | Class Members

SecurePlayLibrary::SPCcommsHTTPclient Class Reference

#include <SPCcommsHTTPclient.h>

Inheritance diagram for SecurePlayLibrary::SPCcommsHTTPclient:

SecurePlayLibrary::SPCcommsHTTP SecurePlayLibrary::SPCcommsTCP SecurePlayLibrary::SPCGenericCommsDriverClass List of all members.

Public Member Functions

 SPCcommsHTTPclient (bool relay)
bool isPoll ()
void StartPOLL (int PollTimer)
bool StartListen (int portIN)
void StopListen ()
bool createConnection (string address, Socket s)
string getCommsDriverType ()
bool prsend (string address, vector< SPbyte > messages)
void SPincoming (string message)
bool prpoll (string address)

Detailed Description

Simple HTTP client class. Extends from basic HTTP class and overrides and configures the class to be client.
Author:
IT GlobalSecure
See also:
SecurePlay License Information


Constructor & Destructor Documentation

SPCcommsHTTPclient::SPCcommsHTTPclient bool  relay  ) 
 

Wraps SPCcommsHTTP constructor.

Parameters:
relay boolean - flag to set relay or no relay.


Member Function Documentation

bool SPCcommsHTTPclient::createConnection string  address,
Socket  s
 

Override. This is a client, it does create connections, it only accepts or adds connections.

Parameters:
address String - NOT USED.
s Socket - NOT USED.
Returns:
boolean
Exceptions:
IOException 

Reimplemented from SecurePlayLibrary::SPCcommsHTTP.

string SPCcommsHTTPclient::getCommsDriverType  ) 
 

This method returns the driver type. It will be overridden with specific driver type.

Returns:
String

Reimplemented from SecurePlayLibrary::SPCcommsHTTP.

bool SPCcommsHTTPclient::isPoll  ) 
 

Returns the poll flag.

Returns:
boolean

bool SPCcommsHTTPclient::prpoll string  address  ) 
 

Sends a poll request message to the reciever.

Parameters:
address String - address the poll request message will be sent to.
Returns:
boolean

Reimplemented from SecurePlayLibrary::SPCGenericCommsDriverClass.

bool SPCcommsHTTPclient::prsend string  address,
vector< SPbyte >  messages
 

Sends the message.

Parameters:
address String - address that this message is sent to.
messages byte[] - messages void

Reimplemented from SecurePlayLibrary::SPCcommsTCP.

void SPCcommsHTTPclient::SPincoming string  message  ) 
 

Incoming method that recieves a byte[] and deserializes it and processes it.

Parameters:
message byte[] - byte array that is incoming. void

Reimplemented from SecurePlayLibrary::SPCcommsHTTP.

bool SPCcommsHTTPclient::StartListen int  portIN  ) 
 

Override. This is a client, it does not listen for new connections.

Parameters:
portIN int - NOT USED. void

Reimplemented from SecurePlayLibrary::SPCcommsTCP.

void SPCcommsHTTPclient::StartPOLL int  PollTimer  ) 
 

Starts a polling class and pushes it into a thread. This polling class keeps polling messages until the poll flag in this class is set to false.

Parameters:
PollTimer int - periodic time interval in which the poll messages are sent out.

void SPCcommsHTTPclient::StopListen  ) 
 

Override. This is a client, it does not listen for new connections. void

Reimplemented from SecurePlayLibrary::SPCcommsTCP.


The documentation for this class was generated from the following files: 2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.