--- libaitio/example/test_sess.c 2013/03/13 14:54:38 1.2 +++ libaitio/example/test_sess.c 2013/03/19 17:06:57 1.2.2.1 @@ -1,12 +1,14 @@ #include #include +#include #include int main() { - ait_sess_t *n = NULL; + sess_t *n = NULL; int i = 255; char *dat, szVal[256]; + ait_val_t *v = NULL; /* map_createSession("/tmp/abra-kadabra-123", 1003, 4096, &n); @@ -44,9 +46,9 @@ int main() if (!dat) return 1; // sess_SetValue(n, "piuk_gniah++", "mryyynnnnn"); - printf(">>> String=%s\n", n->addr); + printf(">>> String=%s\n", n->sess_addr); getchar(); - printf("12345678 Define? %d\n", ISDEF(sess_GetValue(n, "12345678", szVal, &i))); + printf("12345678 Define? %d\n", ISDEF(sess_GetValue(n, "12345678", &v))); printf("111 Define? %d\n", ISDEF(sess_SetValue(n, "111", "321"))); printf("88 Define? %d\n", ISDEF(sess_GetValue(n, "88", szVal, &i))); printf("222 find=%d value=%s vlen=%d\n", ISDEF(sess_SetValue(n, "222", NULL)));