Skip to content
Tom Barbette edited this page Oct 3, 2018 · 2 revisions

ToSocket Element Documentation

NAME

ToSocket — Click element; sends data to socket (user-level)

SYNOPSIS

ToSocket("TCP", IP, PORTNUMBER [, KEYWORDS])
ToSocket("UDP", IP, PORTNUMBER [, KEYWORDS])
ToSocket("UNIX", FILENAME [, KEYWORDS])
ToSocket("UNIX_DGRAM", FILENAME [, KEYWORDS])

Ports: at most 1 input, at most 1 output
Processing: pull
Drivers: userlevel

DESCRIPTION

Sends data to the specified socket. Input packets are sent to the remote host or process.

This element exists only for backward compatibility. See the more general Socket implementation for details, and for supported keyword arguments. A ToSocket is equivalent to a Socket with the CLIENT keyword set to TRUE or a Socket with no outputs.

EXAMPLES

  ... -> ToSocket(1.2.3.4, UDP, 47)

SEE ALSO

FromSocket, Socket

Generated by click-elem2man from ../elements/userlevel/tosocket.hh:8 on 2018/10/03.

Clone this wiki locally