diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2014-11-27 12:13:07 +0100 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2014-11-27 12:13:07 +0100 |
commit | 1817af10022250951ccda1bd31582624fc17ae29 (patch) | |
tree | fea3d2c02f2a1c8e208b8880d667c9d5a4e98897 /src/kiro-client.h | |
parent | fcec7a701ef599c432f29f13ce82bfdb464d7ee7 (diff) | |
parent | e86050c93ba25895e97d3e6a68e07654a02e5110 (diff) | |
download | kiro-1817af10022250951ccda1bd31582624fc17ae29.tar.gz kiro-1817af10022250951ccda1bd31582624fc17ae29.tar.bz2 kiro-1817af10022250951ccda1bd31582624fc17ae29.tar.xz kiro-1817af10022250951ccda1bd31582624fc17ae29.zip |
Merge pull request #12 from ufo-kit/eventLoops
Fix #3: Changed threading model from pthreads to g_threads
Changed server and client to use a main loop approach for event handling
Diffstat (limited to 'src/kiro-client.h')
-rw-r--r-- | src/kiro-client.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/kiro-client.h b/src/kiro-client.h index 9e9d3ef..9c6036d 100644 --- a/src/kiro-client.h +++ b/src/kiro-client.h @@ -125,6 +125,23 @@ void kiro_client_free (KiroClient *client); int kiro_client_connect (KiroClient *client, const char *dest_addr, const char *dest_port); /** + * kiro_client_disconnect - Diconnect a #KiroClient from the Server + * @client: (transfer none): The #KiroClient to disconnect + * Description: + * Disconnects the given #KiroClient from the KIRO server that it is connected + * to. If the @client is not connected, this function has no effect. + * Note: + * The memory content that has been transfered from the server is + * automatically freed when calling this function. If you want to continue + * using the memory after disconnecting the @client, make sure to memcpy() it + * first, using the informations obtained from kiro_client_get_memory() and + * kiro_client_get_memory_size(). + * See also: + * kiro_server_connect + */ +void kiro_client_disconnect (KiroClient *client); + +/** * kiro_client_sync - Read data from the connected server * @client: (transfer none): The #KiroServer to use sync on * Returns: |