socket_out - redirects data received on its standard input to a server using a socket
socket_out [-] [-?|-h|--help] [SERVER] PORT
socket_out redirects data. It sends line by line what it read from its standard input to PORT (an integer) of SERVER (a name or an IP address, default: localhost). Obviously the server must be accessible and the port open. It is meant to easilly creates pipes between computers. The connection is closed when an EOF (end-of-file) is sent (automatically if the content is piped to socket_out or on demand using <ctrl-D>). The server can be identified by its IP address or by its name if it is known by the DNS server(s).
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
Returns the manual page
Written by Pierre Smars (first version: 2008)
Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.
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.
socket_out(1)