GXDN: Gurux Developer Network
StartServer Method
NamespacesGurux.NetGXNetStartServer()()()
Starts the receiver server. Note: If the component is to receive data, it has to be started as server. Protocol and ServerPort must be set, before a server can be started.
Remarks
The server can not send any data, until a client is connected to it. If data is sent, before the client is connected, an error is returned. A server can only listen one client at a time. After the client closes the connection, the server waits, until a new client is connected.
Examples
CopyVBScript
                'This example shows how to start GXNet as server.
'Set Protocol
GXNet1.Protocol = GX_NW_UDP  
'Set port to listen
GXNet1.ServerPort = 1234
'Start server
GXNet1.StartServer
'
'After this, data from the client is received through IGXNetEvents.OnReceived method.
See Also

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