summaryrefslogtreecommitdiff
path: root/src/net/SocketDescriptor.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/SocketDescriptor.hxx')
-rw-r--r--src/net/SocketDescriptor.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/SocketDescriptor.hxx b/src/net/SocketDescriptor.hxx
index 647c9bdd3..a69ab068e 100644
--- a/src/net/SocketDescriptor.hxx
+++ b/src/net/SocketDescriptor.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2019 Max Kellermann <max.kellermann@gmail.com>
+ * Copyright 2012-2021 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -90,13 +90,13 @@ public:
* Determine the socket type, i.e. SOCK_STREAM, SOCK_DGRAM or
* SOCK_SEQPACKET. Returns -1 on error.
*/
- gcc_pure
+ [[gnu::pure]]
int GetType() const noexcept;
/**
* Is this a stream socket?
*/
- gcc_pure
+ [[gnu::pure]]
bool IsStream() const noexcept;
using FileDescriptor::Get;
@@ -167,7 +167,7 @@ public:
* Receive peer credentials (SO_PEERCRED). On error, the pid
* is -1.
*/
- gcc_pure
+ [[gnu::pure]]
struct ucred GetPeerCredentials() const noexcept;
#endif
@@ -226,10 +226,10 @@ public:
bool Connect(SocketAddress address) noexcept;
- gcc_pure
+ [[gnu::pure]]
StaticSocketAddress GetLocalAddress() const noexcept;
- gcc_pure
+ [[gnu::pure]]
StaticSocketAddress GetPeerAddress() const noexcept;
ssize_t Read(void *buffer, size_t length) noexcept;