Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jun 2006 19:48:07 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Tofik Suleymanov <secnews@oxygen.az>
Cc:        questions@freebsd.org
Subject:   Re: socketpair(2) strange behavior
Message-ID:  <20060618004807.GI74191@dan.emsphone.com>
In-Reply-To: <4492D1E9.8080904@oxygen.az>
References:  <4492D1E9.8080904@oxygen.az>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jun 16), Tofik Suleymanov said:
> when using socketpair(2)  on my FreeBSD 6.1-RELEASE-p1 box i get this
> error: "socketpair: Operation not supported"
> 
> And here is the source of my pretty simple socketpair(2) program:
> ---- START ----
> #include <sys/types.h>
> #include <sys/socket.h>
> #include <stdio.h>
> #include <errno.h>
> 
> int main(void) {
> int sv[2], err;
> err = socketpair(AF_INET, SOCK_STREAM, 0, (int*)&sv);
> if(err == -1) {
>        perror("socketpair");
>        return -1;
> }
> 

>From the manpage:

  BUGS
    This call is currently implemented only for the UNIX domain.


-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060618004807.GI74191>