summaryrefslogtreecommitdiffstats
path: root/src/kiro-client.h
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-12-10 15:27:32 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2014-12-10 15:27:32 +0100
commit50a297a290c78c7feb0a4918efba82edd019590b (patch)
tree2407fb62f377a2212df46fdae5f13b9219a2adac /src/kiro-client.h
parentb948c151b9f45db2b90a9ecf95ffd4f54edf3924 (diff)
downloadkiro-50a297a290c78c7feb0a4918efba82edd019590b.tar.gz
kiro-50a297a290c78c7feb0a4918efba82edd019590b.tar.bz2
kiro-50a297a290c78c7feb0a4918efba82edd019590b.tar.xz
kiro-50a297a290c78c7feb0a4918efba82edd019590b.zip
Fixed KIRO client getting stuck in the RDMA event handler
Fix #8: KIRO Server and Client now have routines to handle async communication Fix #6: Added kiro_client_ping_server and respective event handling to server Changed kiro-test-latency to use the new kiro_client_ping_server instead
Diffstat (limited to 'src/kiro-client.h')
-rw-r--r--src/kiro-client.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/kiro-client.h b/src/kiro-client.h
index 9c6036d..3be2621 100644
--- a/src/kiro-client.h
+++ b/src/kiro-client.h
@@ -160,6 +160,19 @@ void kiro_client_disconnect (KiroClient *client);
int kiro_client_sync (KiroClient *client);
/**
+ * kiro_client_ping_server - Sends a PING to the server
+ * @client: (transfer none): The #KiroServer to send the PING from
+ * Returns:
+ * A #guint telling the time (in microseconds) how long it took for the
+ * connected #KiroServer to reply
+ * Description:
+ * Sends a PING package to the connected #KiroServer and waits for a PONG
+ * package from that server. The time between sending the PING and receiving
+ * the PONG (in microseconds) is measured and returned by this function.
+ */
+gint kiro_client_ping_server (KiroClient *client);
+
+/**
* kiro_client_get_memory - Return a pointer to the current client memory
* @client: (transfer none): The #KiroClient to get the memory from
* Returns: (transfer none):