/* initialize address */
memset((void *) &serv_add, 0, sizeof(serv_add)); /* clear server address */
serv_add.sin_family = AF_INET; /* address type is INET */
/* initialize address */
memset((void *) &serv_add, 0, sizeof(serv_add)); /* clear server address */
serv_add.sin_family = AF_INET; /* address type is INET */
/* build address using inet_pton */
if ( (inet_pton(AF_INET, argv[optind], &serv_add.sin_addr)) <= 0) {
perror("Address creation error");
/* build address using inet_pton */
if ( (inet_pton(AF_INET, argv[optind], &serv_add.sin_addr)) <= 0) {
perror("Address creation error");