Allows the communication with the port of a machine in ASCII format. Send a message in string formtat and returns the response as a string.
1 socket.out.print
<socket.out.print>
<socket /> +
<text /> +
</socket.out.print>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Esocket | Socket | Socket type object. | |||
Etext | String | String of characters to send to the host. |
Returns | |
---|---|
Type | Description |
string | String og characters ASCII, response which returns the service to the request made. |
Example
Copy
<xsql-script name='socket'> <body> <set name='s'> <socket host='192.168.1.1' port='12000' /> </set> <socket.out.print> <s /> <string>hplj_3330<string.nl /></string> </socket.out.print> </body> </xsql-script>