Has anyone ever had success using IO::Socket::UNIX or Socket directly on Win32 to create AF_UNIX domain sockets? I see mixed info about supported/not-supported across 'Net.
I am currently using ActiveState Perl 5.8.
I would also be interested in comments regarding same on OpenVMS.
E.g.
Code 1:
...
use IO::Socket::UNIX;
my ($parent_unix_socket,$child_unix_socket);
#my $unix_socket_path = "/tmp/unix_socket";
my $unix_socket_path = "C:\\TMP\\unix_socket";
print $unix_socket_path . "\n";
$parent_unix_socket = IO::Socket::UNIX->new( Local => $unix_socket_pat
+h, Listen => 1 );
unless ( $parent_unix_socket ) {
unlink($unix_socket_path);
Carp::croak("Failure To Create Listening Unix Socket: $!");
}
...
Result1:
C:\TMP\unix_socket
Failure To Create Listening Unix Socket: No such file or directory at dar.pl line 10
I've tried multiple incarnations of path -- no luck.
--adam
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.