SocketCore.Connect
From Real Software Documentation
Method
SocketCore.Connect ( )
Attempts to connect.
Notes
For TCPSockets, the address and port properties must be set. For UDPSockets, the port property must be set. The Connect method binds a socket to a port. After calling Connect, the Port property will report the actual port you are bound to.
Example
The following example is from the EasyTCPSocket example that is in the Examples folder that ships with Real Studio. The Connect button in the UI establishes a connections using the Port that the user has entered and “localhost” as the address. The Connector EasyTCPSocket has been added to the window.
Connector.Address = "localhost"
Connector.Port = Val( TextField1.Text )
Connector.Connect
Connector.Port = Val( TextField1.Text )
Connector.Connect
