Connect Method
Syntax
CWDataSocket.Connect
Purpose
Connects the CWDataSocket to a data source or target.
Remarks
Connect uses the current URL and AccessMode property settings. Use ConnectTo to specify the URL and AccessMode as part of the method call.
If you connect a reading client to a DataSocket item that does not exist, the DataSocket Server creates the item with a default value of 0.
Example
'Set the AccessMode and URL properties and connect
'to a data source.
CWDataSocket1.AccessMode = cwdsRead
CWDataSocket1.URL = "http://myhost/pata_path"
CWDataSocket1.Connect
'The AccessMode and URL also can be set with ConnectTo.
CWDataSocket1.ConnectTo "http://myhost/pata_path", cwdsRead