From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: datagram source port? Date: Thu, 16 Jan 2020 09:04:08 +0100 Message-ID: References: <87mubollw5.fsf@blind.guru> <83r2101ft9.fsf@gnu.org> <83muao4rd1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="119881"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mlang@delysid.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 16 09:05:05 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1is09J-000V1N-JQ for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jan 2020 09:05:05 +0100 Original-Received: from localhost ([::1]:38001 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1is09I-0008Gh-I2 for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jan 2020 03:05:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54289) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1is08T-0007bJ-Aq for emacs-devel@gnu.org; Thu, 16 Jan 2020 03:04:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1is08S-0006JV-8d for emacs-devel@gnu.org; Thu, 16 Jan 2020 03:04:13 -0500 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:51440) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1is08S-0006Gp-0S; Thu, 16 Jan 2020 03:04:12 -0500 Original-Received: by mail-wm1-x32c.google.com with SMTP id d73so2700495wmd.1; Thu, 16 Jan 2020 00:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=m2diOWlUiW06Jc2jN3BPz5EfgqLkorgeBBczzmcU1kM=; b=WY0q7Vd7glquRmFi+drWAW8UL1JKs20UnI9bGB7D7LwTWWpP1r9AJ/F2x/R8W5kYfE FPvc9MHZOFH0F/o4mauPfChuHQ+ouHquhsocKbf4anUVoLKSJ7pxg33CFGbMFsIwqACb 8aS+0V3/0kKZgPiWjWErbb+g5KIkpSG6J5x8Dk5VEc6L9IAqh9twHLlcFXs60IBiUh9V TFcSJWzWOUg4XxT889m2C5CcVvSq1ibiwcRCyOBbAwPIsnVCVLbMh/mYXClpCtBxEQaT NFwAjwTSEXPzftzyXtrku7zGVW7WV0YWjUk9Y6lUd8h8QizG+48JvwOy6w2xVC8sRpRp 4tTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=m2diOWlUiW06Jc2jN3BPz5EfgqLkorgeBBczzmcU1kM=; b=EFfdS7bVoVrYdMnWcEF47YEcwSCF/9KH2/cWlxEWT6yw7Jjp85XNqOfCpC5uTPn7tj K53kXye97iz+zdKrG7D/TDU126DEb/nNPGjfuFdsVWCp5Sz6wo0ZE1ghpH3Wn3MPlRMM cWlv4vilAqd+bAufhlzAJ9gDSjRI2F5jMC4bPJKyCaplCrXUS3nMkrHf5Do1wr21uBCg MbVw7z5y0V2ACOqQDhopFODVOZLWt30TzQTKr6VUPA3fJl3DwfcMfkB44LOhdl12NoIV k94EKa9zrBEfuV+054utlnBBT6olUwZf/XUvO+3rzk3eHdtUXOwdNqqGUYv5o7LhtYpt oc0w== X-Gm-Message-State: APjAAAV3sGXUzhnJ++xUDmKysGSLzKObRY3brhmazxVYvD4a3IjvlzK1 UKtRYElw12Um31CJXubuZc5Fzp8ncE0= X-Google-Smtp-Source: APXvYqwLZ+ZsRzmYH94SPbdga42QS3izBsFqQv2v0w539AVUAnZU9DPYX1x9/eyxb8YzfHmxGQGn5g== X-Received: by 2002:a1c:48c1:: with SMTP id v184mr4770514wma.5.1579161850451; Thu, 16 Jan 2020 00:04:10 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id s19sm3402810wmj.33.2020.01.16.00.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2020 00:04:09 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: <83muao4rd1.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 15 Jan 2020 18:27:38 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32c 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:244289 Archived-At: >>>>> On Wed, 15 Jan 2020 18:27:38 +0200, Eli Zaretskii said: >> From: Robert Pluim >> Cc: mlang@delysid.org, emacs-devel@gnu.org >> Date: Wed, 15 Jan 2020 10:49:33 +0100 >>=20 >> 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? Eli> This comment from nt/inc/ms-w32.h explains that: Eli> /* And the select implementation does 1-byte read-ahead waiting Eli> for received packets, so datagrams are broken too. */ Eli> #define BROKEN_DATAGRAM_SOCKETS 1 Eek. Eli> (Let me know if you want me to explain what it means by "1-byte Eli> read-ahead". Or just read the large commentary that starts around Eli> line 870 of w32proc.c.) Eli> I don't know enough about datagram sockets, but I hope you do, in Eli> which case the above comment ought to be the answer. Yes, it=CA=BCs the answer. Some brave soul could no doubt rewrite the w32 select implementation to fix this, but that=CA=BCs not me. Robert