sipxtacklib  Version 3.3
Public Member Functions | Static Public Member Functions | List of all members
HttpConnectionMap Class Reference

#include <HttpConnectionMap.h>

Inheritance diagram for HttpConnectionMap:
Inheritance graph
[legend]
Collaboration diagram for HttpConnectionMap:
Collaboration graph
[legend]

Public Member Functions

void releaseHttpConnectionMap ()
 Release instance of connection map. More...
 
void clearHttpConnectionMap ()
 Clear all entries in map. Close all sockets and delete them. More...
 
HttpConnectionMapEntrygetPersistentConnection (const Url &url, OsConnectionSocket *&socket)
 Return a map entry for an existing connection or NULL. Locks the connection if non-NULL. More...
 

Static Public Member Functions

static HttpConnectionMapgetHttpConnectionMap ()
 Get pointer to singleton instance of the connection map. More...
 

Member Function Documentation

HttpConnectionMap * getHttpConnectionMap ( )
static

Get pointer to singleton instance of the connection map.

Returns
  • pointer to the instance of the connectiomn map
void releaseHttpConnectionMap ( )

Release instance of connection map.

void clearHttpConnectionMap ( )

Clear all entries in map. Close all sockets and delete them.

HttpConnectionMapEntry * getPersistentConnection ( const Url url,
OsConnectionSocket *&  socket 
)

Return a map entry for an existing connection or NULL. Locks the connection if non-NULL.

Returns
  • pointer to a connection map entry and a connection socket. If no entry exists for a given URI one will be created and th socket pointer will be set to NULL.
  • NULL if the connection does not exist

sipXtackLib home page