Subject: Problem opening socket
From: [email-masked] (Mark Newnham)

13 Oct 1997 20:42:17 -0700
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain
To: "[email-masked]'" <[email-masked]>

Hi, 

can anyone tell me if there is there an obvious (or not so obvious)
reason why the following code 

#include <stdio.h>
#include <sys/errno.h>
#include <sys/socket.h>
#include <sys/un.h>

struct sockaddr_un sunx;
char LogName[] = "/dev/log";
int funix;
char *c;

main()
{
        sunx.sun_family = AF_UNIX;
        strncpy(sunx.sun_path, LogName, sizeof(sunx.sun_path));
        funix = socket(AF_UNIX, SOCK_STREAM, 0);
        perror(c);

}

returns this error? 

 Addresses in the specified family cannot be used with this socket.

I am using sergey's cygwin.dll on Win95.

Regards

Mark

##################################################
# Application Design Associates, Inc             #
# 6021 S.Syracuse Way #302                       #
# Englewood CO 80111        Tel +1 (303)779 8958 #
# USA                       Fax +1 (303)779 0949 #
##################################################

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".