Commit d298157c9848d148c6ac47ec204ac2173582de57
- Diff rendering mode:
- inline
- side by side
src/io.hpp
(2 / 2)
|   | |||
| 702 | 702 | typedef boost::function1<void, char *> input_handler; | |
| 703 | 703 | typedef boost::function1<void, char const *> output_handler; | |
| 704 | 704 | ||
| 705 | basic_socket(scheduler & io, scheduler::socket_id fd) : _io(io), _sock(fd) | ||
| 705 | basic_socket(scheduler & io, socket_id fd) : _io(io), _sock(fd) | ||
| 706 | 706 | { | |
| 707 | 707 | BOOST_ASSERT(fd >= 0); | |
| 708 | 708 | int const rc( fcntl(fd, F_GETFL, 0) ); | |
| … | … | ||
| 785 | 785 | } | |
| 786 | 786 | f(sock, &addr, len); | |
| 787 | 787 | } | |
| 788 | if (errno != EWOULDBLOCK && errno == EAGAIN) | ||
| 788 | if (errno != EWOULDBLOCK && errno != EAGAIN) | ||
| 789 | 789 | throw system_error(errno, "failed to accept() new connection"); | |
| 790 | 790 | } | |
| 791 | 791 |

