in reply to multiple socket streams

How does it know it has reached the end of the data?


בּרוּך

Replies are listed 'Best First'.
Re^2: multiple socket streams
by Forsaken (Friar) on Jun 07, 2004 at 03:35 UTC
    good question...the connection itself is in fact a socket connection to an irc server. I create the connection, and then initiate the while loop to read all the data buffered at that time for the filehandle. One way or another I need to figure out how to persuade it that when there's nothing left it can move on.
Re^2: multiple socket streams
by Forsaken (Friar) on Jun 07, 2004 at 04:20 UTC
    what i thought was that once the buffer's empty, while ($text = <SOCK1>) would return false and the loop would stop.