firstname.lastname@example.org was kind enough to dig through his archives
and send me the following mail whose suggestion I have tried with
-- begin included text --
I was playing with yalls nifty network/smtp/url package w/scsh 0.4.2
and noticed reads on sockets were hanging on Solaris 2.4 and Irix 5.3
but worked fine on SunOS 4.1.1.
So you'll never guess what... yup, the constant for socket-type/stream
and socket-type/datagram have swapped between Solaris 1 (SunOS 4.1)
and Solaris 2 and likewise from Irix 4 to Irix 5.
Here's what yall have for solaris:
(define socket-type/stream 1) ; stream socket
(define socket-type/datagram 2) ; datagram socket
and here's what it should be:
(define socket-type/stream 2) ; stream socket
(define socket-type/datagram 1) ; datagram socket
Before you scream bloody murder :), there might be a good reason for
s swap. It appears the new defines (all SysVr4 derived
systems?) for sockets are based on the TPI (Transport Provider
Interface) definitions and they just happen to be swapped from the old
plain socket ones.
Oh well, my simple tests of socket reads on stream connections seem
to work fine now on Solaris 2.4 and Irix 5.3.
Btw, thx for the slick network interface on scsh, makes network
programming much nicer than the usual C way.
-- end included text --
I just recompiled on the IRIX system (that CHALLENGE really does it
quick!) and things work (sjenkins also tried it on Solaris with
similar results)! Yay ...
I guess the implication is that a separate case will have to be made for
the SysVr4 derived OS'es in the install as other pre-5.3 IRIX's may
Ph.D. student, the University of Pennsylvania
"In studying the way, realizing it is hard; once you have realized it,
preserving it is hard. When you can preserve it, putting it into practice
is hard." -- Zen saying