A
AHLKJ
Unregistered / Unconfirmed
GUEST, unregistred user!
INDY中IdMappedPortTCP和IdTunnelMaster<->IdTunnelSlave的问题!
如何获得用IdMappedPortTCP或IdTunnelMaster<->IdTunnelSlave实现的端口影射的客户端IP地址~~
采用IdTunnelMaster<->IdTunnelSlave方式:
+---+ +-----+ +-----+ +---+
| C |<=====>| | | |<=====>| V |
+---+ | | | | +---+
+---+ | | | | +---+
| C |<=====>| S |<=====>| M |<=====>| V |
+---+ | | | | +---+
+---+ | | | | +---+
| C |<=====>| | | |<=====>| V |
+---+ +-----+ +-----+ +---+
C: Client connection thread
S: Tunnel Slave Server
M: TUnnel Master Server
V: Service Thread
采用IdMappedPortTCP连接方式:
+---+ +-----+ +---+
| C | | | | V |
+---+ | | +---+
+---+ | | +---+
| C |<=====>| M |<=====>| V |
+---+ | | +---+
+---+ | | +---+
| C | | | | V |
+---+ +-----+ +---+
C: Client connection thread
M: IdMappedPortTCP
V: Service Thread
也就是获得 C 端的IP地址 ~~~
如何根据客户端的IP来进行~操作~~
转发还是不转发~~
怎么完成不转发操作~!!
如何获得用IdMappedPortTCP或IdTunnelMaster<->IdTunnelSlave实现的端口影射的客户端IP地址~~
采用IdTunnelMaster<->IdTunnelSlave方式:
+---+ +-----+ +-----+ +---+
| C |<=====>| | | |<=====>| V |
+---+ | | | | +---+
+---+ | | | | +---+
| C |<=====>| S |<=====>| M |<=====>| V |
+---+ | | | | +---+
+---+ | | | | +---+
| C |<=====>| | | |<=====>| V |
+---+ +-----+ +-----+ +---+
C: Client connection thread
S: Tunnel Slave Server
M: TUnnel Master Server
V: Service Thread
采用IdMappedPortTCP连接方式:
+---+ +-----+ +---+
| C | | | | V |
+---+ | | +---+
+---+ | | +---+
| C |<=====>| M |<=====>| V |
+---+ | | +---+
+---+ | | +---+
| C | | | | V |
+---+ +-----+ +---+
C: Client connection thread
M: IdMappedPortTCP
V: Service Thread
也就是获得 C 端的IP地址 ~~~
如何根据客户端的IP来进行~操作~~
转发还是不转发~~
怎么完成不转发操作~!!