Date: Fri, 19 Jan 2001 17:08:32 +0100 (CET) From: Harti Brandt <brandt@fokus.gmd.de> To: julian@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: 'naive' programs on ng_socket's Message-ID: <Pine.BSF.4.21.0101191643450.452-100000@beagle.fokus.gmd.de>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101191643450.452-100000>