[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] AF_UNIX socket(): why error #22



Folks-

   When I try to use the socket() routine to create a UNIX socket (AF_UNIX),
I always get error #22.  However, I can create Internet sockets (AF_INET) just
fine.  The code looks something like this:

   require 'GUSI.ph'


   socket(SOC,1,1,0) || die "socket #",abs($!),"\n";

   .
   .
   .


Would someone mind giving me just a code snippet for an AF_UNIX socket() call
that works?

Thanks in advance.


------------------------------------------------------------------------------
| Toni Harbaugh-Blackford           | Internet: helpuser@ncifcrf.gov         |
| Scientific Applications Analyst   |                                        |
| Biomedical Supercomputing Center  | Phone:  (301) 846-5555                 |
| SAIC                              | FAX:    (301) 846-5762                 |
| NCI-FCRDC                         |                                        |
| PO Box B, Bldg 430                |                                        |
| Frederick, MD 21702-1201   USA    |                                        |
------------------------------------------------------------------------------