Content-type: text/html Manpage of PATHRELAY

PATHRELAY

Section: User Commands (1)
Updated: local
Index Return to Main Contents
 

NAME

pathrelay - relays (or copies or forwards) data between multiple paths  

SYNOPSIS

pathrelay [ [ option... ] path ]...
 

DESCRIPTION

Pathrelay copies data between all the path arguments. That is, any data that are read from one path are written to all the others. Options can precede each path, and apply only to the immediately following path.

Path arguments have one of the following forms:

hostname:portnum
When the path has the form hostname:portnum, a (client) socket connection is made to that hostname and port.
nnn
When the path is a simple number nnn, pathrelay acts as a server, accepting client connections on port number nnn.
*
Otherwise, the path is treated as an ordinary pathname in the filesystem.
 

OPTIONS

-conns nnn
When acting as a server (path is just a port number), pathrelay will limit the number of simultaneous clients to nnn.
-allow globpat
When acting as a server (path is just a port number), pathrelay will only accept clients whose Internet address (not name) matches this glob pattern.
-mode baud,parity,data,stop
Forserialdevices,thisoptionsetstheI/Omodeasindicated, using a set of up to 4 comma-separated values. The order of fields doesn't matter.
baud
the baud rate (9600, 19200, ...).
parity
any abbreviation of:
odd, even, mark, space, none.
data
the number of data bits; valid values are:
5, 6, 7, 8.
stop
the number of stop bits; valid values are:
1 or 2.
 

EXAMPLES

Give network access to a serial device by relaying between the serial port and socket 1234, limiting the network connections to hosts matching glob pattern 192.168.*.*:
           pathrelay -mode 19200,odd,8,1 /dev/ttyS0 \
                          -allow "192.168.*.*" 1234


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES

This document was created by man2html, using the manual pages.
Time: 19:50:59 GMT, August 06, 2002