From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: UDP: Send and receive on same port? Date: Tue, 30 Mar 2021 17:23:51 +0200 Message-ID: <87pmzg4qd4.fsf@gmail.com> References: <87mtulxbko.fsf@blind.guru> <87a6qkew0c.fsf@blind.guru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7869"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Mario Lang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 30 17:24:59 2021 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 1lRGEl-0001vZ-DP for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Mar 2021 17:24:59 +0200 Original-Received: from localhost ([::1]:34544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRGEk-000119-Bk for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Mar 2021 11:24:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRGDl-0000Yk-DZ for emacs-devel@gnu.org; Tue, 30 Mar 2021 11:23:57 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:39512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRGDj-0008C8-Ud for emacs-devel@gnu.org; Tue, 30 Mar 2021 11:23:57 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id d8-20020a1c1d080000b029010f15546281so10548115wmd.4 for ; Tue, 30 Mar 2021 08:23:54 -0700 (PDT) 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=ohjHNnvjUbpGAgf8WZyx+0jFcOobDLbrllm58dRhpa0=; b=GOzsx1hkTYm569MMUWDh2fX8VimNELMLb2LtbznlvqeuV6uZQWcvMbw4hWXzPN8CI9 kiW0KDXs7gm3kY0NFkXyvHPq+Z/dPGuI96Ea8Y65Krlo1APUcURLzD+hF9XRJyC9K47s IpoAJWD4Zv6gdbNfWmhCn55DTPy4naaTAM6xdlCQ7ClHlJyZKRcQd/gbwTTQsDDeFpX1 v5oJbChynXe4M9xIUrBQGkMvRisybFyTrwtL5bP+pzrobmH3FJ27XOyQrOYZjxc/oDxF zyGZT5d9p7sFgbpBhAvWBz+8PBRrPUdjsso6kBMMyFvSupq0EoEgzwGjumYsqxX3tq+Q CGlQ== 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=ohjHNnvjUbpGAgf8WZyx+0jFcOobDLbrllm58dRhpa0=; b=nrJBu1quOOCiM+rup1ueVsIUEvm/0GDL+cMwPPbjrxeor1CvO0XFXTyrT1gLdOGFzM JIBP2YAURE599gIXlKUN9W10CRt9tkLORdVBNLFJEPJLh/PZui1f2vYxtanU6TCnmVbX DlmIR03ITndx270kkPEVNbW7zvQyJ92IjQciLDueH+XSIkb7TDZQ+bMjchQT6cEp08lr kme+iT7t5h84zqk36hHzPsKrJcG+s0f9d4UaKheOI1ixYqnmumlrXkoL0OxR5V6+dDRG 6rl9VPDmYSZsIMgjrk+hSWbgOn3fSXxI2HM7d7Xl+eYHfX7RZ0JvhIbP59cZgaH6FrCf d9kQ== X-Gm-Message-State: AOAM532AKTwLK+Rkz8AZunEFll2tIRQUCUzJrLjuHp9rsdeXBeivrHcY /GWM7fNKyx4X4tRc2Df9LD1ghPF/Y5o= X-Google-Smtp-Source: ABdhPJz4rBCQC699lLk+UtylzN4eijLVrGU5Mo2BETpyQy0sQJEefDDnGvsjInVxXbddij80WM/iJQ== X-Received: by 2002:a7b:c92d:: with SMTP id h13mr4633349wml.147.1617117833142; Tue, 30 Mar 2021 08:23:53 -0700 (PDT) Original-Received: from rltb (91-175-207-237.subs.proxad.net. [91.175.207.237]) by smtp.gmail.com with ESMTPSA id m15sm33152041wrp.96.2021.03.30.08.23.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 08:23:52 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <87a6qkew0c.fsf@blind.guru> (Mario Lang's message of "Tue, 30 Mar 2021 13:11:47 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=rpluim@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:267180 Archived-At: >>>>> On Tue, 30 Mar 2021 13:11:47 +0200, Mario Lang sai= d: Mario> Replying to self Mario> Nevermind, it works by creating a datagram server first, and the= n using Mario> set-process-datagram-address to set the destination. The server= process Mario> can now be used to send UDP as well. However, I am seeing lost = incoming Mario> packets. According to tcpdump, the reply is clearly there, but = the Mario> process filter only seems to pick it up 1 out of roughly 4 times. Mario> Weird. Hmm, I have a patch somewhere to allow setting the sending port directly, I=CA=BCll see if I can find it and resurrect it. Having said that, this sounds like it might be a bug (although I haven't checked if the emacs code supports sending from a datagram server like this). Could you open a bug with M-x report-emacs-bug with your emacs version, and sample code? Robert --=20