sockets question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mydejamail@yahoo.co.uk

    #1

    sockets question


    1. When reading from a socket, how does socket timeout work?
    Will an fgets wait for timeout length per attempt, or timeout is the
    time allowed for repeated fgets attempts, such as in a loop?

    2. Does timeout have an effect if a socket is set to nonblocking, or
    does it apply to blocking sockets only?

  • Janwillem Borleffs

    #2
    Re: sockets question

    mydejamail@yaho o.co.uk wrote:[color=blue]
    > 1. When reading from a socket, how does socket timeout work?
    > Will an fgets wait for timeout length per attempt, or timeout is the
    > time allowed for repeated fgets attempts, such as in a loop?
    >[/color]

    Per attempt
    [color=blue]
    > 2. Does timeout have an effect if a socket is set to nonblocking, or
    > does it apply to blocking sockets only?[/color]

    It only applies to blocking sockets


    JW


    Comment

    Working...