mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
change "get" to "is"
This commit is contained in:
parent
86053fa86d
commit
1f049c2fd0
5 changed files with 7 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue