socket_in

NAME

socket_in - creates a server waiting for data on a port and writing it to the standard output

SYNOPSIS

socket_in [-] [-?|-h|--help] PORT

DESCRIPTION

socket_in redirects data. It opens a TCP socket channel on a PORT of localhost, waits for data sent from the same computer or from the network and print it to the standard output. It is meant to easilly creates pipes between computers. The server closes when an EOF (end-of-file) is sent by the client. Unprivileged users can only open ports between 1024 and 65535. To avoid collision with running servers, it is safer to use a number above 49151 (non registered ports).

EXAMPLE

I create a visualisation server on a computer called 'server'

me@server> socket_in 9000 | view_pt

You send me a point cloud file from your computer 'client'

you@client> cat pointcloud.pt | socket_out server 9000

OPTIONS

-h,--help,-?

Returns the manual page

AUTHORS

Written by Pierre Smars (first version: 2009)

BUGS

Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.

COPYRIGHT

Copyright (C) 2018 Pierre Smars. License GPLv2 <http://www.gnu.org/licenses/gpl-2.0.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

socket_out(1)

Pierre SMARS (tools, home page)