aboutsummaryrefslogtreecommitdiffstats
path: root/common/network/Socket.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-11-15 19:16:08 +0100
committerPierre Ossman <ossman@cendio.se>2025-02-13 11:10:14 +0100
commit3861097921de71b8a742c1f70bc991b3518f5dd7 (patch)
treed6aa45c647e408e15fed860e3b1ffb216a7dcfb8 /common/network/Socket.h
parentd96242158d4c3b3247e55fbe4c968994c0fd9773 (diff)
downloadtigervnc-3861097921de71b8a742c1f70bc991b3518f5dd7.tar.gz
tigervnc-3861097921de71b8a742c1f70bc991b3518f5dd7.zip
Reduce header #include:s
Make compile times faster by reducing the number of headers included in other headers.
Diffstat (limited to 'common/network/Socket.h')
-rw-r--r--common/network/Socket.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/common/network/Socket.h b/common/network/Socket.h
index 34b8db8e..f1688c72 100644
--- a/common/network/Socket.h
+++ b/common/network/Socket.h
@@ -24,8 +24,11 @@
#include <list>
#include <limits.h>
-#include <rdr/FdInStream.h>
-#include <rdr/FdOutStream.h>
+
+namespace rdr {
+ class FdInStream;
+ class FdOutStream;
+}
namespace network {
@@ -40,12 +43,12 @@ namespace network {
rdr::FdInStream &inStream() {return *instream;}
rdr::FdOutStream &outStream() {return *outstream;}
- int getFd() {return outstream->getFd();}
+ int getFd();
void shutdown();
bool isShutdown() const;
- void cork(bool enable) { outstream->cork(enable); }
+ void cork(bool enable);
// information about the remote end of the socket
virtual const char* getPeerAddress() = 0; // a string e.g. "192.168.0.1"