function
Library: TCP/IP client and server support (OMTCP legacy, OmniMark versions 6.0.2 - 7.0)
Include: omtcp.xin |
define external function tcp-put value tcp-connection Connection from value string characters timeout value integer ms optional
Argument definitions
Use tcp-put to write characters to a TCP connection (sending them to the receiver).
You must include the following line at the beginning of your OmniMark program:
include "omtcp.xin"
Connection must exist (else external exception TCP05).
There may not be an active external sink derived from Connection with tcp-sink (else external exception TCP20).
If an error occurs while writing, external exception TCP12 is thrown.
If the write operation times out, external exception TCP06 is thrown.
Sequential uses of tcp-put is allowed.
local tcp-connection Connection-1 set Connection-1 to tcp-connect on "localhost" at 5300 tcp-put Connection-1 from "hello world" tcp-put Connection-1 from ((("*" ||* 78) || "%n") ||* 40)