On Dec 30, 2011, at 6:21 AM, Fernando Gont wrote:
> After taking a look at the libpcap code, it seems that a straightforward
> way to incorporate the functionality I was mentioning would be to add to
> pcap_t a "status" member, and add right before every sentence that
> writes to handle->errbuf a
On Thu, Dec 29, 2011 at 3:45 PM, Fernando Gont wrote:
> I'm doing I/O multiplexing by obtaining the underlying file descriptor
> for the pcap_t "socket", with pcap_fileno().
>
> I was wondering whether I should check for exceptions on such descriptor
> (in addition to readability and writeability)
On 12/29/2011 09:27 PM, Guy Harris wrote:
>
> Setting errno to 0 before calling them, and, if they return -1,
> checking the value of errno *might* work. No guarantees, and bear in
> mind that errno values for various conditions are
> platform-dependent.
>
> Ultimately, there should perhaps be di