mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Turn off Nagle algorithm to decrease latency.
This is safe because of the way writes are performed: for each transmission, all outgoing messages are concatenated in memory and only a single write() syscall is made.
This commit is contained in:
@@ -30,6 +30,7 @@ class NetworkStream {
|
||||
|
||||
virtual llvm::StringRef getPeerIP() const = 0;
|
||||
virtual int getPeerPort() const = 0;
|
||||
virtual void setNoDelay() = 0;
|
||||
|
||||
NetworkStream(const NetworkStream&) = delete;
|
||||
NetworkStream& operator=(const NetworkStream&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user