aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/Proxy.h
diff options
context:
space:
mode:
authorSalvador Fandino <sfandino@yahoo.com>2016-04-20 16:22:56 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-04-27 13:59:34 +0200
commit3713346f3959782c5e5d1ddd0252f25fb319d732 (patch)
treea5c9561b419cb278af6f5b27181a5b62496a8f50 /nxcomp/Proxy.h
parentb326eda7328e95200f7d70efde35ce51a14bab3d (diff)
downloadnx-libs-3713346f3959782c5e5d1ddd0252f25fb319d732.tar.gz
nx-libs-3713346f3959782c5e5d1ddd0252f25fb319d732.tar.bz2
nx-libs-3713346f3959782c5e5d1ddd0252f25fb319d732.zip
Provide support for channel endpoints being UNIX file sockets in addition to being TCP/IP sockets.
Diffstat (limited to 'nxcomp/Proxy.h')
-rw-r--r--nxcomp/Proxy.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/nxcomp/Proxy.h b/nxcomp/Proxy.h
index c0fdfcce9..87ea1ce8a 100644
--- a/nxcomp/Proxy.h
+++ b/nxcomp/Proxy.h
@@ -32,6 +32,7 @@
#include "Transport.h"
#include "EncodeBuffer.h"
#include "ProxyReadBuffer.h"
+#include "ChannelEndPoint.h"
//
// Forward declaration as we
@@ -258,8 +259,11 @@ class Proxy
virtual void handleDisplayConfiguration(const char *xServerDisplay, int xServerAddrFamily,
sockaddr * xServerAddr, unsigned int xServerAddrLength) = 0;
- virtual void handlePortConfiguration(int cupsServerPort, int smbServerPort, int mediaServerPort,
- int httpServerPort, const char *fontServerPort) = 0;
+ virtual void handlePortConfiguration(ChannelEndPoint &cupsServerPort,
+ ChannelEndPoint &smbServerPort,
+ ChannelEndPoint &mediaServerPort,
+ ChannelEndPoint &httpServerPort,
+ const char *fontServerPort) = 0;
//
// Create new tunneled channels.
@@ -278,10 +282,13 @@ class Proxy
int handleNewGenericConnection(int clientFd, T_channel_type type, const char *label);
int handleNewGenericConnectionFromProxy(int channelId, T_channel_type type,
- const char *hostname, int port, const char *label);
+ ChannelEndPoint &endpoint, const char *label);
- int handleNewGenericConnectionFromProxy(int channelId, T_channel_type type,
- const char *hostname, const char *path, const char *label);
+ int handleNewGenericConnectionFromProxyUnix(int channelId, T_channel_type type,
+ const char *path, const char *label);
+
+ int handleNewGenericConnectionFromProxyTCP(int channelId, T_channel_type type,
+ const char *hostname, long port, const char *label);
int handleNewSlaveConnection(int clientFd);