http://www.perlmonks.org?node_id=129768


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

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.

Replies are listed 'Best First'.
Re: Re: Re: IO::Socket
by Ea (Chaplain) on Dec 06, 2001 at 15:13 UTC
    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