updated unit tests, makefile targets

This commit is contained in:
Joseph Henry
2016-12-16 13:04:01 -08:00
parent 76e8c2e187
commit 306278bdf7
10 changed files with 656 additions and 206 deletions

View File

@@ -1,4 +1,4 @@
// TCP Server test program
// TCP Server test program (IPV4)
#include <stdio.h>
#include <string.h>
@@ -12,11 +12,11 @@ int atoi(const char *str);
int main(int argc , char *argv[])
{
zts_init_rpc("/root/dev/ztest5","565799d8f612388c");
if(argc < 2) {
printf("usage: tcp_server <port>\n");
return 0;
if(argc < 3) {
printf("usage: client <port> <netpath> <nwid>\n");
return 1;
}
zts_init_rpc(argv[2],argv[3]);
int sock, client_sock, c, read_size, port = atoi(argv[1]);
char client_message[2000];