Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 2 revisions

FromSocket Element Documentation

NAME

FromSocket — Click element; reads data from socket (user-level)

SYNOPSIS

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

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

DESCRIPTION

Reads data from the specified socket. Packets received from the remote host or process are emitted on the output.

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

EXAMPLES

  FromSocket(TCP, 0.0.0.0, 80) -> ...

SEE ALSO

ToSocket, Socket

Generated by click-elem2man from ../elements/userlevel/fromsocket.hh:8 on 2017/10/17.

Clone this wiki locally