Rob M. wrote:
http_socket = TCPSocket.new("#{i}", 80); http_socket.send("PUT
nc -l -k 3001
…will start your ‘server’. Then you set your client to connect to
localhost 3001, you can use nc as a client to test that as well:echo hello | nc localhost 3001
Thanks for mentioning nc, did not know that such a utility exists.
However, it worth mentioning that it is only BSD/Linux thingy (by
default), on Solaris here’s what it is :
User Commands nc(1)
$ man nc
NAME
nc - Client program for NEdit text editor
SYNOPSYS
nc [-read] [-create] [-line n | +n] [-do command] [-[no]ask]
[-svrname name] [file…]
DESCRIPTION
nc is the client interface to the NEdit text editor. To use
…
Gennady.