diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-06-15 10:29:12 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-07-04 23:02:03 +0200 |
commit | c6e9565127d5980d9f57928b36e8ca424197ca9e (patch) | |
tree | 602e3d0c5cee23aa872fe47cda31ee306c162043 /nxcomp/ChannelEndPoint.h | |
parent | b23dcd101a3fbfe662479ddfe6985bd2b874741f (diff) | |
download | nx-libs-c6e9565127d5980d9f57928b36e8ca424197ca9e.tar.gz nx-libs-c6e9565127d5980d9f57928b36e8ca424197ca9e.tar.bz2 nx-libs-c6e9565127d5980d9f57928b36e8ca424197ca9e.zip |
nxcomp/Loop.cpp: Add Unix file socket support for proxy <-> proxy connection.
Diffstat (limited to 'nxcomp/ChannelEndPoint.h')
-rw-r--r-- | nxcomp/ChannelEndPoint.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nxcomp/ChannelEndPoint.h b/nxcomp/ChannelEndPoint.h index 5b4e75345..901952e37 100644 --- a/nxcomp/ChannelEndPoint.h +++ b/nxcomp/ChannelEndPoint.h @@ -33,25 +33,32 @@ class ChannelEndPoint int defaultTCPInterface_; // 0=localhost, otherwise IP of public interface. char *defaultUnixPath_; char *spec_; + bool isUnix_; + bool isTCP_; - bool specIsPort(long *port = NULL) const; + bool getPort(long *port = NULL) const; public: ChannelEndPoint(const char *spec = NULL); + ~ChannelEndPoint(); ChannelEndPoint &operator=(const ChannelEndPoint &other); bool enabled() const; bool disabled() { return !enabled(); } void disable(); void setSpec(const char *spec); - void setSpec(int port); + void setSpec(long port); + void setSpec(const char *hostName, long port); + bool getSpec(char **socketUri) const; void setDefaultTCPPort(long port); void setDefaultTCPInterface(int publicInterface); void setDefaultUnixPath(char *path); bool getUnixPath(char **path = NULL) const; + bool isUnixSocket() const; bool getTCPHostAndPort(char **hostname = NULL, long *port = NULL) const; long getTCPPort() const; + bool isTCPSocket() const; bool validateSpec(); }; |