aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/ChannelEndPoint.h
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-05 08:09:24 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-05 08:09:24 +0200
commit854f3fa49351ec72da432f195806162fcf5e5ddc (patch)
tree2366136004c46641fa72b8a717663c7ac08ac440 /nxcomp/ChannelEndPoint.h
parente0edae04db6dc189512b3a1eda7fe4516af56512 (diff)
parent5a22f2ec1fc5f40257bb61939f9cad4187e00ab8 (diff)
downloadnx-libs-854f3fa49351ec72da432f195806162fcf5e5ddc.tar.gz
nx-libs-854f3fa49351ec72da432f195806162fcf5e5ddc.tar.bz2
nx-libs-854f3fa49351ec72da432f195806162fcf5e5ddc.zip
Merge branch 'sunweaver-pr/proxy-to-proxy-over-unix-socket' into 3.6.x
Attributes GH PR #142: https://github.com/ArcticaProject/nx-libs/pull/142 Reviewed by: Salvador Fandino <sfandino@yahoo.com> -- Mon, 04 Jul 2016 16:31:00 +0200
Diffstat (limited to 'nxcomp/ChannelEndPoint.h')
-rw-r--r--nxcomp/ChannelEndPoint.h11
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();
};