[883] in linux-announce channel archive
socket 1.11 for Linux
daemon@ATHENA.MIT.EDU (Lars Wirzenius)
Sat Aug 5 05:32:17 1995
Date: Fri, 4 Aug 1995 15:15:27 +0300
From: Lars Wirzenius <wirzeniu@cc.helsinki.fi>
To: linux-activists@niksula.hut.fi, linux-announce@vger.rutgers.edu
X-Mn-Key: announce
From: "Mark R. Lindsey" <mark@eskimo.com>
Subject: socket 1.11 for Linux
Newsgroups: comp.os.linux.announce
Approved: linux-announce@news.ornl.gov (Lars Wirzenius)
Organization: ?
Followup-to: comp.os.linux.networking
Socket version 1.1 has been uploaded to sunsite -- /pub/Linux/Incoming.
What is it?
The program Socket implements access to TCP sockets from shell level.
First written for the need to open a server socket and read and write
to the socket interactively for testing purposes, it quickly evolved
into a generic tool providing the socket interface for shell script
and interactive use.
Client mode
In client mode (which is the default) it connects to a given port at a
given host. Data read from the socket is written to stdout, data read
from stdin is written to the socket. When the peer closes the
connection or a signal is received, the program terminates. An
example for this is the following command:
% socket coma.cs.tu-berlin.de nntp
This connects to the host coma.cs.tu-berlin.de at the nntp port
(provided these two names can be resolved through gethostbyname(3) and
getservbyname(3)). The user can now issue commands to the NNTP
server, any output from the server is written to the user's terminal.
Server mode
In server mode (indicated by the "-s" command line switch) it binds a
server socket to the given port on the local host and accepts a
connection. When a client connects to this socket, all data read from
the socket is written to stdout, data read from stdin is written to
the socket. For example, the command
% socket -s 3917
accepts a connection on port 3917.
Many other options are available to tailor the connection, including
background mode, and a one-way mode.
This utility is very useful if you are not root and want to use network
services developed for use with the inetd (i.e., those that use stdin and
stdout for traffic). It is also useful for development of apps even when
you are root (easier than the edit->kill -1>test cycle with the inetd),
and specialized servers (see the included example).
Here's the lsm entry --
Begin3
Title: socket(1) -- TCP socketeur at shell level
Version: 1.1
Entered-date: 19950802
Description: Socket is a handy utility that lets you use TCP
sockets from your favorite shell by connecting stdin/
stdout to programs. E.g., use socket to run servers
that would normally be run with inetd(8).
This is a `port' by the author for Linux, but should
compile on any you-nicks platform. Linux binary
included.
Keywords: networking socket shell ip
Author: nickel@cs.tu-berlin.de (Juergen Nickelsen)
Maintained-by: mark@eskimo.com (Mark R. Lindsey)
Primary-site: sunsite.unc.edu /pub/Linux/system/Network/misc
28k socket-1.1.tar.gz
1k socket-1.1.lsm
Platform: TCP/IP support on Unix
Copying-policy: GNU GPL-esque
End
Mark R. Lindsey [][] Linux International's Consultants Directory Project
mark@eskimo.com [][] Mark.Lindsey@li.org ars longa, vita brevis
PGP key fingerprint: DB 6B 9E 9F B5 F2 9B 6D A0 BE D8 10 6B 22 8F 06
--
Send comp.os.linux.announce submissions to: linux-announce@news.ornl.gov
PLEASE remember a short description of the software.