Connection Pool

Namespace: dmConnectionPool Language: C++ Type: Defold C++ File: connection_pool.h Source: engine/dlib/src/dmsdk/dlib/connection_pool.h Include: dmsdk/dlib/connection_pool.h

Connection pool

API

Close

Type: FUNCTION Close connection. Use this function whenever an error occur in eg http.

Parameters

Delete

Type: FUNCTION Delete connnection pool

Parameters

Returns

Dial

Type: FUNCTION Connection to a host/port

Parameters

Returns

Dial

Type: FUNCTION Connection to a host/port

Parameters

Returns

dmConnectionPool::Result

Type: ENUM Result enumeration.

Members

GetSocket

Type: FUNCTION Get socket for connection

Parameters

Returns

GetSSLSocket

Type: FUNCTION Get secure socket.

Parameters

Returns

HConnection

Type: TYPEDEF Connection handle

HPool

Type: TYPEDEF Connection pool handle

New

Type: FUNCTION Create a new connection pool

Parameters

Returns

Params

Type: STRUCT Creation parameters

Members

Return

Type: FUNCTION Return connection to pool

Parameters

Shutdown

Type: FUNCTION 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.

Parameters

Returns