Collage
1.0.1
Object-Oriented C++ Network Library
|
Global parameter handling for the Collage library. More...
#include <global.h>
Static Public Member Functions | |
static CO_API void | setDefaultPort (const uint16_t port) |
Set the default listening port. More... | |
static CO_API uint16_t | getDefaultPort () |
static CO_API void | setObjectBufferSize (const uint32_t size) |
Set the minimum buffer size for Object serialization. More... | |
static CO_API uint32_t | getObjectBufferSize () |
static CO_API bool | fromString (const std::string &data) |
static CO_API void | toString (std::string &data) |
static CO_API lunchbox::PluginRegistry & | getPluginRegistry () |
static CO_API uint32_t | getKeepaliveTimeout () |
Attributes | |
enum | IAttribute { IATTR_INSTANCE_CACHE_SIZE, IATTR_NODE_SEND_QUEUE_SIZE, IATTR_NODE_SEND_QUEUE_AGE, IATTR_RSP_ACK_TIMEOUT, IATTR_RSP_ERROR_DOWNSCALE, IATTR_RSP_ERROR_UPSCALE, IATTR_RSP_ERROR_MAXSCALE, IATTR_RSP_MIN_SENDRATE_SHIFT, IATTR_RSP_NUM_BUFFERS, IATTR_RSP_ACK_FREQUENCY, IATTR_UDP_MTU, IATTR_UDP_BUFFER_SIZE, IATTR_QUEUE_MIN_SIZE, IATTR_QUEUE_REFILL, IATTR_RDMA_RING_BUFFER_SIZE_MB, IATTR_RDMA_SEND_QUEUE_DEPTH, IATTR_RDMA_RESOLVE_TIMEOUT_MS, IATTR_ROBUSTNESS, IATTR_TIMEOUT_DEFAULT, IATTR_OBJECT_COMPRESSION, IATTR_ALL } |
Global integer attributes. More... | |
static CO_API void | setIAttribute (const IAttribute attr, const int32_t value) |
static CO_API int32_t | getIAttribute (const IAttribute attr) |
static CO_API uint32_t | getTimeout () |
|
static |
|
static |
|
static |
|
static |
Set the default listening port.
|
static |
Set the minimum buffer size for Object serialization.
The buffer size is used during serialization. When a DataOStream has buffered at least size bytes, the data is send to the slave nodes. The default is 60.000 bytes.
size | the treshold before the DataOStream sends a buffer. |