Sockets
Kalipso - Developing - Specific options - Sockets
Last updated
Kalipso - Developing - Specific options - Sockets
Last updated
Sockets allow you to connect to other devices to send or receive data. In each project you can have up to 10 simultaneous socket connections active. You can name these connections in the screen bellow. In Kalipso a socket connection can be established in 2 ways. If you want your application to wait for an external connection to arrive from another device, you can use the “Socket Accept” Action. In this case your application is considered has a socket server. If you want to establish a connection to another device you can use the “Socket Connect” Action to try to connect to a socket server. In this case your application is considered has a socket client. After a connection is established you can use “Socket Write” to send data and “Socket Read” to receive data. At the end “Socket Close” is used to terminate the connection. When the option is selected, this screen appears:
The information that appears in the table means:
Socket - Socket Identifier (Index). You cannot change this value.
Name - Socket Name. Name that you want to give to the Socket. The name of the Socket should only contain letters, digits or underscore (_). This is the Name that will identify the Socket throughout the Project.
Description - Socket Description. Description that you want to give to the Socket. This property is for your information only.
On the right side of the window is an icon to edit the selected Socket. When the button is pressed the application asks:
As you can see the fields to fill are the same that appears in the table in the beginning. You can change the name and the description.
Sockets can also be used in a locally to communicate with other applications on the same device.