diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-05-10 11:32:51 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-05-10 11:32:51 +0200 |
commit | f3b9cc299d729f21d34ed5a7c6b8d06f7b50020e (patch) | |
tree | 25d958bf643003530e7509ec470ef52ae921ddfa /src/tools/echo/echo_client.c | |
parent | 22a36acfb535cd35250eb3b77bdbf75ff161217d (diff) | |
parent | a952b77225418ce0e92f14e58f2db792ce9a72b0 (diff) | |
download | ouroboros-f3b9cc299d729f21d34ed5a7c6b8d06f7b50020e.tar.gz ouroboros-f3b9cc299d729f21d34ed5a7c6b8d06f7b50020e.zip |
Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into irmd-threads
Diffstat (limited to 'src/tools/echo/echo_client.c')
-rw-r--r-- | src/tools/echo/echo_client.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/echo/echo_client.c b/src/tools/echo/echo_client.c index 9cf56cee..5c613817 100644 --- a/src/tools/echo/echo_client.c +++ b/src/tools/echo/echo_client.c @@ -33,28 +33,28 @@ int client_main() char * message = "Client says hi!"; ssize_t count = 0; - if(ap_init(CLIENT_AP_NAME)) { - printf("Failed to init AP."); + if (ap_init(CLIENT_AP_NAME)) { + printf("Failed to init AP.\n"); return -1; } fd = flow_alloc(SERVER_AP_NAME, NULL, NULL); if (fd < 0) { - printf("Failed to allocate flow\n"); + printf("Failed to allocate flow.\n"); ap_fini(); return -1; } result = flow_alloc_res(fd); if (result < 0) { - printf("Flow allocation refused\n"); + printf("Flow allocation refused.\n"); flow_dealloc(fd); ap_fini(); return -1; } if (flow_write(fd, message, strlen(message) + 1) == -1) { - printf("Failed to write SDU\n"); + printf("Failed to write SDU.\n"); flow_dealloc(fd); ap_fini(); return -1; @@ -62,7 +62,7 @@ int client_main() count = flow_read(fd, buf, BUF_SIZE); if (count < 0) { - printf("Failed to read SDU\n"); + printf("Failed to read SDU.\n"); flow_dealloc(fd); ap_fini(); return -1; |