summaryrefslogtreecommitdiff
path: root/src/event/ServerSocket.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/ServerSocket.cxx')
-rw-r--r--src/event/ServerSocket.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx
index 6b36ed815..556648cc4 100644
--- a/src/event/ServerSocket.cxx
+++ b/src/event/ServerSocket.cxx
@@ -103,16 +103,16 @@ public:
using SocketMonitor::Close;
gcc_pure
- std::string ToString() const {
+ std::string ToString() const noexcept {
return ::ToString(address);
}
- void SetFD(int _fd) {
+ void SetFD(int _fd) noexcept {
SocketMonitor::Open(_fd);
SocketMonitor::ScheduleRead();
}
- void Accept();
+ void Accept() noexcept;
private:
virtual bool OnSocketReady(unsigned flags) override;
@@ -146,7 +146,7 @@ get_remote_uid(int fd)
}
inline void
-OneServerSocket::Accept()
+OneServerSocket::Accept() noexcept
{
StaticSocketAddress peer_address;
size_t peer_address_length = sizeof(peer_address);
@@ -343,7 +343,7 @@ ServerSocket::AddPortIPv6(unsigned port)
*/
gcc_pure
static bool
-SupportsIPv6()
+SupportsIPv6() noexcept
{
int fd = socket(AF_INET6, SOCK_STREAM, 0);
if (fd < 0)