Re: crm114 on sockets ...

Bill Yerazunis <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
   From: Chris Babcock <[email protected]>
   > users with special needs, or just willing to experiment with I/O on
   > sockets, may want to try socat(1):
   >=20
   >   http://www.dest-unreach.org/socat/doc/socat.html#EXAMPLES
   >=20
   >=20
   > HTH

   socat -d -d -lmlocal2 \
   TCP4-LISTEN:80,bind=3Dmyaddr1,su=3Dnobody,fork,range=3D10.0.0.0/8,reuseaddr=
    \
   TCP4:www.domain.org:80,bind=3Dmyaddr2

       TCP port forwarder, each side bound to another local IP address
       (bind). This example handles an almost arbitrary number of parallel
       or consecutive connections by fork'ing a new process after each
       accept()...=20

   So *that* is what socat does that netcat doesn't. Nice.

Aha!!!!  OK.  

That's a load off my mind; I was trying to come up with a
good way to put CONNECT into CRM114 and not have an abomination;
this saves me a ton of thinking.

So, new canonical answer: "Look up 'socat'".  

Thanks!

   - Bill Yerazunis


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.