mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
make Nagle's algorithm configurable
This commit is contained in:
parent
e3da256c5d
commit
b6ca7cf918
5 changed files with 50 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ namespace network {
|
|||
virtual void connect(runnable callback) = 0;
|
||||
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]] TransportType getTransportType() const noexcept override {
|
||||
return TransportType::TCP;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue