Actions: Sockets

get my IP

Retrieves the IP address of the device.

Argument Description
Output The location where the IP address will go (variable or field or text element).

socket client connect to host

Opens a connection that can be used for socket communication.

Argument Description
IP Address Input, variable, text or field element containing the IP address of the host.
Port Input, variable, text or field element containing the port to be used when opening the connnection.

socket client get message

Retrieves the message received by a socket client.

Argument Description
Output The location where the message will go (variable or field or text element).

socket client get sender IP

Retrieves the IP address of the sender of a socket message.

Argument Description
Output The location where the IP address will go (variable or field or text element).

socket client get sender port

Retrieves the port used by the sender of a socket message.

Argument Description
Output The location where the port will go (variable or field or text element).

socket client send message

Sends data to a socket.

Argument Description
Port Input, variable, text or field element containing the port of the receiver.
Data Input, variable, text or field element containing the data to be sent.
IP Address Input, variable, text or field element containing the IP address of the receiver.

socket client stop

Closes a socket connection.

socket host accept connections

Accepts an internet connection and creates a socket for that connection.

Argument Description
Port Input, variable, text or field element containing the port to be used to accept connections on.
AuthRequired Whether new connections need to authenticate before sending other messages (True) or not (False).

socket host get last client IP

Retrieves the IP address of the last client to disconnect.

Argument Description
Output The location where the IP address will go (variable or field or text element).

socket host get last client port

Retrieves the port used by the last client to disconnect.

Argument Description
Output The location where the port will go (variable or field or text element).

socket host get message

Retrieves the message received by a socket host.

Argument Description
Output The location where the message will go (variable or field or text element).

socket host get sender IP

Retrieves the IP address of the sender of a socket message.

Argument Description
Output The location where the IP address will go (variable or field or text element).

socket host get sender port

Retrieves the port used by the sender of a socket message.

Argument Description
Output The location where the port will go (variable or field or text element).

socket host send message

Sends data to a socket.

Argument Description
Port Input, variable, text or field element containing the port of the receiver.
Data Input, variable, text or field element containing the data to be sent.
IP Address Input, variable, text or field element containing the IP address of the receiver.

socket host stop

Closes all open socket connections.

This chapter was last updated on Wed 23 Oct 2024 16:23:52 BST