GXDN: Gurux Developer Network
Connect Method
NamespacesGurux.NetGXNetConnect()()()
Opens the connection.
Remarks
Protocol, HostPort and HostName must be set, before calling the Connect method.
Examples
CopyVBScript
                'This example shows how to start client connection.
'Set Protocol
GXNet1.Protocol = GX_NW_UDP  
'Set client port
GXNet1.HostPort = 1234
'Set client name
GXNet1.HostName = "localhost"
'Make connection
GXNet1.Connect
'Send data
dim dataToSend
dataToSend = "Hello"
GXNet1.Send dataToSend, ""
'The response is received after this through the IGXNetEvents.OnReceived method.
See Also

Assembly: Gurux.Net (Module: Gurux.Net) Version: 5.0.0.1