sockio manpage



NAME

     sockio - redirects stdin and stdout to a socket as a client


SYNOPSIS

     sockio     [-p     portnumber]     [-h     hostname]     [-e
     emptyline_behavior]


DESCRIPTION

     sockio redirects stdin and stdout to a socket as  a  client.
     One  may  use  this  program  to  obtain information that is
     available thru server daemons. The  port  numbers  on  which
     these  daemons  accept  connections  must be known. You must
     also know the protocol that is used by  the  daemon  on  the
     specified port. The commandline

     echo "GET /index.html" | sockio -haltavista.digital.com

     will retrieve the main index.html from this  webserver.  One
     may  use  these program in simple scripts. It was originally
     written to extend the client/server features of  the  Motif-
     based Editor nedit.


OPTIONS

     -p portnumber
          connect to a server which is listening  on  port  port-
          number.   The default portnumber is 80. This will query
          the www-server at the host given in the -h option.


     -h hostname
          connect to a server at host hostname. If this option is
          ommitted localhost is used

     -e emptyline_behavior
          change the behavior for receiving  an  empty  line.  If
          emptyline_behavior  is  1 the connection will be closed
          as soon as no more input is available.




ENVIRONMENT

     No environment variables are used


SEE ALSO

     ioexec(1), socket(2),


BUGS

     No spaces are allowed between the flag and the corresponding
     argument.


AUTHOR

     Thomas   Pantzer,   pantec@aix520.informatik.uni-leipzig.de,
     1998