From 72cb71c99131db200871dac9e17acefdf97292e7 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Tue, 13 May 2014 16:25:42 +0200 Subject: 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. --- test-client.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'test-client.c') 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) { -- cgit v1.2.3