Danh mục

Event-Based Programming without Inversion of Control

Số trang: 20      Loại file: pdf      Dung lượng: 291.73 KB      Lượt xem: 25      Lượt tải: 0    
tailieu_vip

Phí tải xuống: 1,000 VND Tải xuống file đầy đủ (20 trang) 0
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

For example, the read filter for socket descriptors is triggered as long as there is data in the socket buffer greater than the SO LOWAT mark, or when the socket has shutdown and is unable to receive any more data. The filter will return the number of bytes pending in the socket buffer, as well as set an EOF flag for the shutdown case. This providesmore information that the application can use while processing the event. As EOF is explicitly returned when the socket is shutdown, the application no longer needs to make an additional call to read() in order to discover an EOF condition. A non kqueue-aware application using the...
Nội dung trích xuất từ tài liệu:
Event-Based Programming without Inversion of Control

Tài liệu được xem nhiều: