However, not being a C programmer I am finding it a bit difficult to
port it to OSR5 despite the helpful PORTING guide supplied with socat
source.
Currently stuck with S_ISSOCK() not being supported under OSR5. Google
reveals that this is non trivial to work around.
Has anyone else had any success compiling socat on OSR5?
--
Ian Wilson.
It looks pretty nice. Better timeout configurability than netcat (the main
problem I've had with netcat), and it does the jobs of a few one-off programs
I've written.
The solution for S_ISSOCK, unless you need the specific functionality it
provides, it just to "#define S_ISSOCK(fmode) 0". I did that, and a few other
porting bits, and got socat to build under 5.0.6a. The diff I sent to the
maintainers is at:
ftp://ftp.armory.com/pub/user/spcecdt/socat-diff
Trivial tests indicate that it works.
John
--
John DuBois spc...@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
Woohoo, it does indeed work.
I tested the TCP sockets features by relaying a print-server web page:
socat TCP-LISTEN:8080,reuseaddr,fork TCP:jetdirect.example.com:80
I want to see if I can use socat to relay HTTP over plain serial modem
links (i.e. getty not ppp) as a remote support aid.
Many thanks John,
Ian.