From owner-freebsd-hackers Fri Jan 19 8:21:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id 7722937B698; Fri, 19 Jan 2001 08:21:30 -0800 (PST) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.8.8/8.8.8) with ESMTP id RAA23793; Fri, 19 Jan 2001 17:08:32 +0100 (MET) Date: Fri, 19 Jan 2001 17:08:32 +0100 (CET) From: Harti Brandt To: julian@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: 'naive' programs on ng_socket's Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I try to use the feature described in the ng_socket man page - writing to a ng_socket node that has excatly one hook attached. This appears not to work. I use NgMkSockNode(NULL, &cs, &ds) to create my node, then I NGM_CONNECT it to another node. If I now write to the data socket, I get a EDESTADDRREQ. When I do a connect(), I get a EISCONN. Well, after looking into the code, it appears, that I should not call connect(). Ok. But in the first case, it appears, that the generic socket code in uipc_socket.c, sosend() is the victim. The ng_socket code never declares the socket as connected I guess the SS_ISCONNECTED should be set somewhere in ng_data_connect or soisconnected() should be called... harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, harti@begemot.org, lhbrandt@mail.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message