From owner-freebsd-questions@FreeBSD.ORG Sun Jun 18 00:48:15 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1778316A494 for ; Sun, 18 Jun 2006 00:48:14 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95B4A43D67 for ; Sun, 18 Jun 2006 00:48:07 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k5I0m7IM005547; Sat, 17 Jun 2006 19:48:07 -0500 (CDT) (envelope-from dan) Date: Sat, 17 Jun 2006 19:48:07 -0500 From: Dan Nelson To: Tofik Suleymanov Message-ID: <20060618004807.GI74191@dan.emsphone.com> References: <4492D1E9.8080904@oxygen.az> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4492D1E9.8080904@oxygen.az> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: questions@freebsd.org Subject: Re: socketpair(2) strange behavior X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 00:48:15 -0000 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 > #include > #include > #include > > 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