connect(tcpipConnection: TcpIpConnection);
The connect method defined in the JadeTcpIpProxy class connects to the target host through the specified proxy server. When a TcpIpConnection class open or openAsynch method is called, JADE checks to see if the TcpIpConnection class networkProxy property contains a reference to a JadeTcpIpProxy object.
If a connection to the host server through a proxy server is required (that is, the networkProxy property contains a JadeTcpIpProxy reference), the TcpIpConnection object is passed to the connect method of the JadeTcpIpProxy object.
The connect method establishes a connection to a remote application through a proxy server and returns when the connection is established. An exception is raised if an object reference mismatch is detected between the proxy server and the proxy specified in the tcpipConnection parameter or if the attempt to establish a connection fails.
You can reimplement the connect method if you have special proxy requirements. The reimplementing method must use the TcpIpConnection object specified in the tcpipConnection parameter to perform the necessary TCP/IP communications with the proxy server.
For examples of reimplementing JadeTcpIpProxy class functionality, see "Proxy Communication Code Examples", earlier in this chapter. See also "Considerations when Implementing JadeTcpIpProxy Class Features", earlier in this chapter.