Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Socket client group

Description:
The window serves for setting the parameters of the socket client group for communication in the network by Sockets. This configuration window can be opened in the page PmRoot > Sockets.
Configuration items:
NameName of the client group
Server network addressServer network address to which the socket client will be connected. The address can be entered by both IP address (e.g. 192.168.0.15) or by name (e.g. server11). If the client wants to be connected to the server that runs on the same (local) computer, then it is advisable to enter the universal local host address: 127.0.0.1.

Macro expression can be used for input (it is evaluated while the application is launching).

Timeout [ms] Time (in ms) that the client is waiting for the response (for the input). If the data are not accepted in this time interval, the transfer will be declared as faulty.
Transfer modeSelection from the following options (for details see Data transfer in network over Sockets):
According to server - At first the client finds out parameters of the group (port and protocol type) on the server side by the system message and then it uses these parameters for the data transfer of this socket group.
Unlimited data length (TCP) - The client will communicate by the TCP protocol, the data can be of any size. The group must be set up on the server side the same way.
Limited data length (UDP) - The client will communicate by the UDP protocol, the data size should be less than 480 bytes. The group must be set up on the server side the same way.
Limited data length (UDP) without Promotic header - The client will communicate by the UDP protocol and the PROMOTIC won't add anything into the user data. The data size should be less than 150 bytes. It serves for the communication with the server that is not a PROMOTIC application.
Port number Port number entered by a designer or set automatically by the server. If it is entered by a designer, it must be the same as the number of the corresponding server group.
Port according to server
User assigned port
Target server groupName of the server group with which this client group will communicate
See also:
- Configuration items Socket server group
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice