NAME

sendto -
Send a message from a cep

SYNOPSIS


package require ceptcl

sendto channelId host port data

DESCRIPTION

This command sends a message to another cep or socket using an already open cep. Usually used for datagram and raw ceps. The data sent does not pass through the Tcl channel system. No translation or encoding is performed regardless of the fconfigure settings of the cep. The data is sent exactly as presented to the sendto command. Any required transformations on the data must be performed prior to sending. If no errors are encountered when attemtimg to send the message, sendto returns the number of bytes sent.

SEE ALSO

cep(n), fconfigure(n), flush(n), open(n), read(n), socket(n)

ALSO ALSO

icmp(4), ip(4), ip6(4), socket(2), tcp(4), udp(4), etc, and a bunch of RFCs.

KEYWORDS

bind, channel, connection, domain name, host, network address, socket, tcp, udp