in reply to Waiting for input, without sleep
This function has exactly the same syntax as sysread(), and performs nearly the same task (reading data from the socket) but will not advance the read position so that successive calls to peek() with the same arguments will return the same results. This function requires OpenSSL 0.9.6a or later to work.
This function will let you know how many bytes of data are immediately ready for reading from the socket. This is especially handy if you are doing reads on a blocking socket or just want to know if new data has been sent over the socket.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Waiting for input, without sleep
by Trihedralguy (Pilgrim) on Jun 30, 2009 at 15:44 UTC | |
by jrsimmon (Hermit) on Jun 30, 2009 at 15:55 UTC | |
by Trihedralguy (Pilgrim) on Jun 30, 2009 at 16:12 UTC | |
by jrsimmon (Hermit) on Jun 30, 2009 at 16:28 UTC | |
by Trihedralguy (Pilgrim) on Jun 30, 2009 at 16:36 UTC | |
|