Usage: socket [options] host port socket -s [options] port socket -[s]U [options] pathname Options: -0: use zero-sized packet as EOF (useful with UDP only) -B buffer-size: size of I/O buffers in bytes (default: 65536) -C: count the amount of data transferred -H: don't exit on half-close by peer -L time-to-live: set time-to-live for IP datagrams (default: 255) -P: connect program directly to socket fd (don't use pipes) -Q queue-length: listen queue length (default: 5) -R: don't set SO_REUSEADDR -T timeout: receive timeout (milliseconds) (default: 0) -U: use Unix domain socket -V: print version -a local-address: bind socket to local address -b: run as background daemon -c: translate CR/LF <-> LF -f: fork handler process -h: print usage message and exit -l: loop to create/accept other connections -m mode: access mode for UNIX domain server socket (default: 384) -n: non-blocking mode -p program: run program connected to socket -q: quit on EOF on stdin -r: read from socket only -s: create server socket -t timeout: send timeout (milliseconds) (default: 0) -u: use UDP socket -v: verbosity level (number of "v"s) -w: write to socket only