Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

IO::Socket

by Ea (Friar)
on Dec 05, 2001 at 16:44 UTC ( #129587=note: print w/ replies, xml ) Need Help??


in reply to Re: Simple UDP example anyone?
in thread Simple UDP example anyone?

What few people mention is that IO::Socket doesn't work under Solaris (I believe that Sun has hardcoded the constants to non-standard values or similar rubbish) and you get stuck with using Socket

Ea :wq


Comment on IO::Socket
Re: IO::Socket
by vek (Prior) on Dec 05, 2001 at 20:36 UTC
    IO::Socket actually does work under Solaris. I've been using it for XML servers on 4 different Solaris boxes ranging from 5.6 to 5.8. It's actually really sweet.
      I actually have done the same, and have successfully coded many a daemon to run on solaris systems. Sun can be very nice to you when you learn to use it.
        The suspense is killing me. How did you get it to work? I was trying to connect as a client to my collegue's daemon written in C which created and was listening on /tmp/mysocket all done on Solaris 7. Yesterday, I was sure that I had read that Sun had hard-coded values, but today all I can find in the docs is the Camel book mentioning that ancient Perl scripts had values hard-coded (which, over time, mutated into "It's not my fault after all").

        Here's the code for the curious

        $socketname = "/tmp/mysocket"; socket(SOCK, PF_UNIX, SOCK_STREAM, 0) or die "socket: $!"; connect(SOCK, sockaddr_un($socketname)) or die "connect: $!";

        Thanks for the info,

        Ea :wq

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://129587]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2014-09-21 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls