open();
The open method of the TcpIpConnection class establishes a connection to a remote application and returns when the connection is established.
Use the
Use the port property to define the target service port when using the open or openAsynch method or to define the listen port when using the listen or listenAsynch method.
The open method can be called only when the value of the
The value of the
The code fragment in the following example shows the use of the open method.
if bOpen.value = true then self.tcp.open; elseif bListen.value = true then statusLine1.caption := "Listening"; self.tcp.listen; else self.tcp.close; endif;