From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: datagram source port? Date: Wed, 15 Jan 2020 18:27:38 +0200 Message-ID: <83muao4rd1.fsf@gnu.org> References: <87mubollw5.fsf@blind.guru> <83r2101ft9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao:159.69.161.202"; logging-data="69775"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mlang@delysid.org, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 15 17:28:31 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irlWx-000I74-FH for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Jan 2020 17:28:31 +0100 Original-Received: from localhost ([::1]:56770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irlWw-0007LD-DJ for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Jan 2020 11:28:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34986) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irlVu-0005wm-Fp for emacs-devel@gnu.org; Wed, 15 Jan 2020 11:27:27 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1irlVt-0001uN-My; Wed, 15 Jan 2020 11:27:25 -0500 Original-Received: from [176.228.60.248] (port=3785 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1irlVr-0002s2-TM; Wed, 15 Jan 2020 11:27:24 -0500 In-reply-to: (message from Robert Pluim on Wed, 15 Jan 2020 10:49:33 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244275 Archived-At: > From: Robert Pluim > Cc: mlang@delysid.org, emacs-devel@gnu.org > Date: Wed, 15 Jan 2020 10:49:33 +0100 > > I took another quick look at this, and noticed that the windows port > doesn't support datagram sockets at all, although the underlying > Winsock does. Is there a reason for that? This comment from nt/inc/ms-w32.h explains that: /* And the select implementation does 1-byte read-ahead waiting for received packets, so datagrams are broken too. */ #define BROKEN_DATAGRAM_SOCKETS 1 (Let me know if you want me to explain what it means by "1-byte read-ahead". Or just read the large commentary that starts around line 870 of w32proc.c.) I don't know enough about datagram sockets, but I hope you do, in which case the above comment ought to be the answer. Thanks.