Connection pool
Connection pool handle
Connection handle
Result enumeration.
dmConnectionPool::RESULT_OK - 0
dmConnectionPool::RESULT_OUT_OF_RESOURCES - -1
dmConnectionPool::RESULT_SOCKET_ERROR - -2
dmConnectionPool::RESULT_HANDSHAKE_FAILED - -3
dmConnectionPool::RESULT_SHUT_DOWN - -4
Creation parameters
m_MaxConnections - Max connection in pool
m_MaxKeepAlive - Default max-keep-alive time in seconds
Create a new connection pool
params -
pool - pool (out)
dmConnectionPool::RESULT_OK - on success
Delete connnection pool
pool - pool
dmConnectionPool::RESULT_OK - on success
Connection to a host/port
pool - pool
host - host
port - port
ssl - true for ssl connection
timeout - The timeout (micro seconds) for the connection and ssl handshake
connection - connection (out)
sock_res - socket-result code on failure
dmConnectionPool::RESULT_OK - on success
Connection to a host/port
pool - pool
host - host
port - port
ssl - true for ssl connection
timeout - The timeout (micro seconds) for the connection and ssl handshake
cancelflag - If set and not null, will make the request early out
connection - connection (out)
sock_res - socket-result code on failure
dmConnectionPool::RESULT_OK - on success
Return connection to pool
pool - pool
connection -
Close connection. Use this function whenever an error occur in eg http.
pool - pool
connection -
Get socket for connection
pool - pool
connection -
- on success
Get secure socket.
pool - pool
connection -
- on success
Shuts down all open sockets in the pool and block new connection attempts. The function can be called repeatedly on the same pool until it returns no more connections in use.
pool - pool
how - shutdown type to pass to socket shutdown function
current - number of connections in use