From owner-freebsd-net Tue Jun 12 18:29:51 2001 Delivered-To: freebsd-net@freebsd.org Received: from mail.jbu.com.cn (mail.jbu.com.cn [162.105.202.21]) by hub.freebsd.org (Postfix) with ESMTP id D9A1F37B401 for ; Tue, 12 Jun 2001 18:29:47 -0700 (PDT) (envelope-from xiaohudong@263.net) Received: from hxd (watchdog.jbu.com.cn [162.105.202.150]) by mail.jbu.com.cn (8.9.3/8.9.3) with SMTP id JAA09294 for ; Wed, 13 Jun 2001 09:29:33 +0800 Message-Id: <200106130129.JAA09294@mail.jbu.com.cn> Date: Wed, 13 Jun 2001 9:32:35 +0800 From: xiaohudong To: "freebsd-net@freebsd.org" Subject: User data handling during connection establishment X-mailer: FoxMail 3.1 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Sorry to send this question again,but I have used the wrong character set last time. Thanks Julian to point this. Hello,I want to known if the development team has a plan to add API to support user data handling during connection establishment,just as WSAConnect and WSAAccept do. I want to get the connection data to judge my program's behavior, and I think these two APIs are very useful. I read the man page of accept,it says: For certain protocols which require an explicit confirmation, such as ISO or DATAKIT, accept() can be thought of as merely dequeueing the next con- nection request and not implying confirmation. Confirmation can be im- plied by a normal read or write on the new file descriptor, and rejection can be implied by closing the new socket. One can obtain user connection request data without confirming the con- nection by issuing a recvmsg(2) call with an msg_iovlen of 0 and a non- zero msg_controllen, or by issuing a getsockopt(2) request. Similarly, one can provide user connection rejection information by issuing a sendmsg(2) call with providing only the control information, or by call- ing setsockopt(2). So does anyone know something more? Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message