Go to the source code of this file.
|
int | KSI_TcpClient_new (KSI_CTX *ctx, KSI_NetworkClient **client) |
|
int | KSI_TcpClient_setPublicationUrl (KSI_NetworkClient *client, const char *val) |
|
int | KSI_TcpClient_setExtender (KSI_NetworkClient *client, const char *host, unsigned port, const char *user, const char *key) |
|
int | KSI_TcpClient_setAggregator (KSI_NetworkClient *client, const char *host, unsigned port, const char *user, const char *key) |
|
int | KSI_TcpClient_setTransferTimeoutSeconds (KSI_NetworkClient *client, int val) |
|
int | KSI_TcpAsyncClient_new (KSI_CTX *ctx, KSI_AsyncClient **c) |
|
int | KSI_TcpAsyncClient_setService (KSI_AsyncClient *c, const char *host, unsigned port, const char *user, const char *pass) |
|
int KSI_TcpAsyncClient_setService |
( |
KSI_AsyncClient * |
c, |
|
|
const char * |
host, |
|
|
unsigned |
port, |
|
|
const char * |
user, |
|
|
const char * |
pass |
|
) |
| |
Setter for the tcp service endpoint parameters.
- Parameters
-
[in] | c | Pointer to tcp async client. |
[in] | host | Host name. |
[in] | port | Port number. |
[in] | user | User name. |
[in] | pass | HMAC shared secret. |
- Returns
- status code (KSI_OK, when operation succeeded, otherwise an error code).
- See also
- KSI_TcpAsyncClient_new
Creates a new TCP client.
- Parameters
-
[in] | ctx | KSI context. |
[out] | client | Pointer to the receiving pointer. |
- Returns
- status code (KSI_OK, when operation succeeded, otherwise an error code).
int KSI_TcpClient_setAggregator |
( |
KSI_NetworkClient * |
client, |
|
|
const char * |
host, |
|
|
unsigned |
port, |
|
|
const char * |
user, |
|
|
const char * |
key |
|
) |
| |
Setter for the tcp aggregator parameters.
- Parameters
-
[in] | client | Pointer to tcp client. |
[in] | host | Host name. |
[in] | port | Port number. |
[in] | user | User name. |
[in] | key | HMAC shared secret. |
- Returns
- status code (KSI_OK, when operation succeeded, otherwise an error code).
int KSI_TcpClient_setExtender |
( |
KSI_NetworkClient * |
client, |
|
|
const char * |
host, |
|
|
unsigned |
port, |
|
|
const char * |
user, |
|
|
const char * |
key |
|
) |
| |
Setter for the tcp client extender parameters.
- Parameters
-
[in] | client | Pointer to tcp client. |
[in] | host | Host name. |
[in] | port | Port number. |
[in] | user | User name. |
[in] | key | HMAC shared secret. |
- Returns
- status code (KSI_OK, when operation succeeded, otherwise an error code).
Setter for the publications file URL. The value will be copied and thus can be freed after successful call.
- Parameters
-
[in] | client | Pointer to the http client. |
[in] | val | Null-terminated URL. |
- Returns
- status code (KSI_OK, when operation succeeded, otherwise an error code).
Setter for the read, write, timeout in seconds.
- Parameters
-
[in] | client | Pointer to the tcp client. |
[in] | val | Timeout in seconds. |
- Returns
- status code (KSI_OK, when operation succeeded, otherwise an error code).