Date: Tue, 12 Jun 2001 11:30:43 +0800 From: xiaohudong <xiaohudong@263.net> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: A question about Winsock style API Message-ID: <200106120327.LAA05738@mail.jbu.com.cn>
next in thread | raw e-mail | index | archive | help
Hello,I want to known if the development team has a plan to add Winnsock style API, such as WSAConnect and WSAAccept.I want to get the connection data to judge my program's behavior,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. xiaohudong xiaohudong@263.net 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?200106120327.LAA05738>