change "get" to "is"

This commit is contained in:
Xertis
2025-10-01 01:05:30 +03:00
parent 86053fa86d
commit 1f049c2fd0
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -362,7 +362,7 @@ public:
}
}
bool getNoDelay() const override {
bool isNoDelay() const override {
int opt = 0;
socklen_t len = sizeof(opt);
if (getsockopt(descriptor, IPPROTO_TCP, TCP_NODELAY, (char*)&opt, &len) < 0) {
+1 -1
View File
@@ -78,7 +78,7 @@ namespace network {
virtual int recv(char* buffer, size_t length) = 0;
virtual int available() = 0;
virtual void setNoDelay(bool noDelay) = 0;
[[nodiscard]] virtual bool getNoDelay() const = 0;
[[nodiscard]] virtual bool isNoDelay() const = 0;
[[nodiscard]] TransportType getTransportType() const noexcept override {
return TransportType::TCP;