Diff for /libaitio/example/Attic/test_n2.c between versions 1.1 and 1.2

version 1.1, 2011/12/13 02:22:04 version 1.2, 2011/12/13 02:23:07
Line 0 Line 1
   #include <stdio.h>
   #include <aitio.h>
   
   
   int
   main(int argc, char **argv)
   {
           io_sockaddr_t addr = { 0 };
           ait_val_t v;
   
           if (!io_gethostbyname(argv[1], 1234, &addr)) {
                   printf("Error:: #%d - %s\n", io_GetErrno(), io_GetError());
                   return 1;
           }
   
           if (!io_n2addr(&addr, &v)) {
                   printf("Error:: #%d - %s\n", io_GetErrno(), io_GetError());
                   return 2;
           }
   
           printf("Address is %s port is %u\n", AIT_GET_STR(&v), io_n2port(&addr));
   
           AIT_FREE_VAL(&v);
           return 0;
   }

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>