#include <XPURL.h>
Public Member Functions | |
XPURL () | |
virtual | ~XPURL () |
void | BeginEnumerateTransports (void) |
Transport * | EnumerateTransports (void) |
std::string | ParseURLs (const std::string urls) |
void | Poll (void) |
void | SetManualPoll (void) |
void | SetAutomaticPoll (void) |
Static Public Member Functions | |
static void | RegisterTransport (Transport &transport) |
static void | RegisterDefaultTransports (void) |
static Transport * | FindTransport (const std::string url) |
static void | InitialiseNetwork (const bool hardware=false) |
static void | ShutdownNetwork (const bool hardware=false) |
static DebugHandler * | RegisterDebugHandler (DebugHandler *debugHandler=0) |
static DebugHandler * | GetDebugHandler (void) |
|
The ctor for an XPURL |
|
The dtor for an XPURL This cleans up everything for this class |
|
Starts enumerating the current number of Transport types |
|
Enumerates the Transport list, BeginEnumerateTransports() must be called before this function Call this function repeatedly in a loop to enumerate through the list
|
|
Finds the matching Transport for the URL |
|
Returns the debug handler set by RegisterDebugHandler() or null.
|
|
Causes the network layer to start. This can include all system level hardware on the target platform.
|
|
Parses a URL and after each iteration returns a tokenised URL. The first time this function is called pass in the whole URL and on subsequent calls pass in ""
|
|
This polls XPURL. Normally an application will yield enough time during threads for XPURL to function. Sometimes an application that uses a lot of 3D graphics can lock out other threads for quite some time. In these cases you may call XPURL::Poll() to yield some time to XPURL to perform housekeeping. If a reliable UDP transport is being used this function will also poll the reliable UDP manager. |
|
This registers an extendible debug handler for use by XPURL, XPSession, ReplicaNet and the Visual Debugger. A PlatformHeap::ForceFree() will delete the active currently registered DebugHandler class. The application can use RegisterDebugHandler() without a parameter to unregister the DebugHandler and avoid the handler being automatically freed by PlatformHeap::ForceFree().
|
|
This static member function registers all of the default transports such as reliable UDP. |
|
Registers a Transport pointer with the URL decoder
|
|
Sets the automatic Poll() method for this class and the reliable UDP manager. |
|
Sets the manual Poll() method for this class and the reliable UDP manager. |
|
Forces the network layer to shutdown if it is started. This can include all system level hardware on the target platform. This should only be used after users of XPURL classes, such as XPSession and ReplicaNet, have been freed. This does not free all internal allocated memory blocks, an example would be for registered factory classes. To force all internal allocated memory to be released RNReplicaNet::PlatformHeap::ForceFree() should be called. A PlatformHeap::ForceFree() will call ShutdownNetwork(true).
|