public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Problem opening socket
@ 1997-10-14  4:29 Sergey Okhapkin
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Okhapkin @ 1997-10-14  4:29 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com', 'Mark Newnham'

Mark Newnham wrote:
> can anyone tell me if there is there an obvious (or not so obvious)
> reason why the following code 
> 
> #include <sys/un.h>

> returns this error? 
> 
>  Addresses in the specified family cannot be used with this socket.

The only address family supported by winsock is AF_INET. You can't use unix domain sockets.

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Problem opening socket
@ 1997-10-13 14:33 Mark Newnham
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Newnham @ 1997-10-13 14:33 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com'

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
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-10-14  4:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-14  4:29 Problem opening socket Sergey Okhapkin
  -- strict thread matches above, loose matches on Subject: below --
1997-10-13 14:33 Mark Newnham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).