|
@@ -94,13 +94,12 @@ public:
|
|
/// Adds a new TCP server using an already opened file descriptor (eg. it
|
|
/// Adds a new TCP server using an already opened file descriptor (eg. it
|
|
/// only wraps it so the file descriptor is usable within the event loop).
|
|
/// only wraps it so the file descriptor is usable within the event loop).
|
|
///
|
|
///
|
|
- /// If you pass bad data (eg. opened UDP socket as fd), this will not detect
|
|
|
|
- /// it right away, but successfull operations might fail.
|
|
|
|
- ///
|
|
|
|
/// \param fd the file descriptor to be used.
|
|
/// \param fd the file descriptor to be used.
|
|
/// \param af the address family of the file descriptor. Must be either
|
|
/// \param af the address family of the file descriptor. Must be either
|
|
/// AF_INET or AF_INET6.
|
|
/// AF_INET or AF_INET6.
|
|
/// \throw isc::InvalidParameter if af is neither AF_INET nor AF_INET6.
|
|
/// \throw isc::InvalidParameter if af is neither AF_INET nor AF_INET6.
|
|
|
|
+ /// \throw isc::asiolink::IOError when a low-level error happens, like the
|
|
|
|
+ /// fd is not a valid descriptor or it can't be listened on.
|
|
void addServerTCPFromFD(int fd, int af);
|
|
void addServerTCPFromFD(int fd, int af);
|
|
/// \brief Add another UDP server to the service from already opened
|
|
/// \brief Add another UDP server to the service from already opened
|
|
/// file descriptor
|
|
/// file descriptor
|
|
@@ -108,13 +107,12 @@ public:
|
|
/// Adds a new UDP server using an already opened file descriptor (eg. it
|
|
/// Adds a new UDP server using an already opened file descriptor (eg. it
|
|
/// only wraps it so the file descriptor is usable within the event loop).
|
|
/// only wraps it so the file descriptor is usable within the event loop).
|
|
///
|
|
///
|
|
- /// If you pass bad data (eg. opened TCP socket as fd), this will not detect
|
|
|
|
- /// it right away, but successfull operations might fail.
|
|
|
|
- ///
|
|
|
|
/// \param fd the file descriptor to be used.
|
|
/// \param fd the file descriptor to be used.
|
|
/// \param af the address family of the file descriptor. Must be either
|
|
/// \param af the address family of the file descriptor. Must be either
|
|
/// AF_INET or AF_INET6.
|
|
/// AF_INET or AF_INET6.
|
|
/// \throw isc::InvalidParameter if af is neither AF_INET nor AF_INET6.
|
|
/// \throw isc::InvalidParameter if af is neither AF_INET nor AF_INET6.
|
|
|
|
+ /// \throw isc::asiolink::IOError when a low-level error happens, like the
|
|
|
|
+ /// fd is not a valid descriptor or it can't be listened on.
|
|
void addServerUDPFromFD(int fd, int af);
|
|
void addServerUDPFromFD(int fd, int af);
|
|
/// \brief Remove all servers from the service
|
|
/// \brief Remove all servers from the service
|
|
void clearServers();
|
|
void clearServers();
|