Search:

Type: Posts; User: India

Search: Search took 0.00 seconds.

  1. Thread: selct()

    by India
    Replies
    9
    Views
    1,961

    Here is my complete code.............. Please...

    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>...
  2. Thread: selct()

    by India
    Replies
    9
    Views
    1,961

    Thank You for your Reply. But still its returning...

    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 ...
  3. Thread: selct()

    by India
    Replies
    9
    Views
    1,961

    Thank again for U R reply. Here is the code...

    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...
  4. Thread: selct()

    by India
    Replies
    9
    Views
    1,961

    Thank U for the reply.................. But I...

    Thank U for the reply.................. But I have tried sockfd+1 as U have said. It always returning 0
  5. Thread: selct()

    by India
    Replies
    9
    Views
    1,961

    selct()

    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) {
    ...
  6. Replies
    1
    Views
    1,287

    socket() and select()

    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.
Results 1 to 6 of 8