diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2014-05-13 16:25:42 +0200 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2014-05-13 16:25:42 +0200 |
commit | 72cb71c99131db200871dac9e17acefdf97292e7 (patch) | |
tree | a862c2c2e91ccecee54a06d6ad88cac707e2c449 /test-client.c | |
parent | 86c5a2afb4cbebbc7b41b9815c993c4fcc099b64 (diff) | |
download | kiro-72cb71c99131db200871dac9e17acefdf97292e7.tar.gz kiro-72cb71c99131db200871dac9e17acefdf97292e7.tar.bz2 kiro-72cb71c99131db200871dac9e17acefdf97292e7.tar.xz kiro-72cb71c99131db200871dac9e17acefdf97292e7.zip |
Added kiro_attach_qp to kiro-rdma.h that creates a new QP for
a rdma_cm_id and attaches it.
Changed kiro_destroy_connection to work on a rdma_cm_id instead.
Changed kiro-server accordingly.
Restructured kiro-server to use an event loop thread to listen for
new client connections.
Restructured kiro-server to no longer memorize the client connections.
It is currently unneccessary as no control-flow is exchanged.
Diffstat (limited to 'test-client.c')
-rw-r--r-- | test-client.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test-client.c b/test-client.c index 65a3c08..469aa5e 100644 --- a/test-client.c +++ b/test-client.c @@ -38,9 +38,13 @@ int main ( int argc, char *argv[] ) return -1; } KiroClient *client = g_object_new(KIRO_TYPE_CLIENT, NULL); - if(-1 != kiro_client_connect(client, argv[1], argv[2])) - kiro_client_sync(client); + if(-1 == kiro_client_connect(client, argv[1], argv[2])) + { + g_object_unref(client); + return -1; + } + kiro_client_sync(client); KiroTrb *trb = g_object_new(KIRO_TYPE_TRB, NULL); kiro_trb_adopt(trb, kiro_client_get_memory(client)); @@ -67,7 +71,7 @@ int main ( int argc, char *argv[] ) int cont = 1; - struct KiroTrbInfo *header = (struct KiroTrbInfo *)kiro_trb_get_raw_buffer(trb); + //struct KiroTrbInfo *header = (struct KiroTrbInfo *)kiro_trb_get_raw_buffer(trb); while(cont) { |