Date: Wed, 13 Jun 2001 9:32:35 +0800 From: xiaohudong <xiaohudong@263.net> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: User data handling during connection establishment Message-ID: <200106130129.JAA09294@mail.jbu.com.cn>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106130129.JAA09294>
