IPv6 Socket Program Problem
Seems that flow not going in " for" loop containing accept in ipv6server.c and hence not able to accept and connect with the client. Whats the mistake ? This code is working fine for IPV4 but after IPV6 changes getting this problem ipv6server.c #include <stdio.h> #include <stdlib.h> /* needed for os x */ #include <string.h> /* for memset */ #include <sys/socket.h> #include <netinet/in.h> #include <sys/errno.h> /* defines ERESTART, EINTR */ #include <sys/wait.h> /* defines WNOHANG, for wait() */ #include "port.h" /* defines default port */ #ifndef ERESTART #define ERESTART EINTR #endif extern