Here is my complete code.............. Please do help
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>...
Type: Posts; User: India
Here is my complete code.............. Please do help
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>...
Thank You for your Reply. But still its returning ZERO. I debugged using gdb. The sel value is more than ZERO.
131 FD_SET(sockfd, &read_fd);
(gdb)
133 ...
Thank again for U R reply. Here is the code before while(1)
fd_set read_fd;
struct timeval timeout;
timeout.tv_sec = 5;
timeout.tv_usec = 0;
FD_ZERO(&read_fd);
pid_t...
Thank U for the reply.................. But I have tried sockfd+1 as U have said. It always returning 0
Hi,
What's worng here. My select() call always return 0. Here my parent is the server and child is the client. My select() call is in the server process.
while (1) {
...
Hi all,
I need to send message across two processes(child1 & child2) using socket() and select(). How do I need to do this in Linux.