From nobody Wed Jun 11 11:39:22 2025 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with UTF8SMTP id 4bHNwv0DKMz5xj7w for ; Wed, 11 Jun 2025 11:39:27 +0000 (UTC) (envelope-from acho_iliew@abv.bg) Received: from smtp-out.abv.bg (smtp-out.abv.bg [194.153.145.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.abv.bg", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by mx1.freebsd.org (Postfix) with UTF8SMTPS id 4bHNwr6csTz3Drm for ; Wed, 11 Jun 2025 11:39:24 +0000 (UTC) (envelope-from acho_iliew@abv.bg) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=abv.bg header.s=smtp-out header.b=jzWMqI4q; spf=pass (mx1.freebsd.org: domain of acho_iliew@abv.bg designates 194.153.145.10 as permitted sender) smtp.mailfrom=acho_iliew@abv.bg; dmarc=pass (policy=none) header.from=abv.bg Received: from nm22.abv.bg (mail92.ni.bg [192.168.151.143]) by smtp-out.abv.bg (Postfix) with UTF8SMTP id A1B9B616B for ; Wed, 11 Jun 2025 14:39:22 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abv.bg; s=smtp-out; t=1749641962; bh=IdBiJkONCWP7dakU6KzhMh2Iic0pQb95AdeT7/8nffA=; h=Date:From:To:Subject:From; b=jzWMqI4qLwMm7gVRDFDcKktrpL0I4s3EXI1NTd6IasegxPwSUHhoy9+kzgitunkVW fqOHi2S1ld3gmXXNZdAEKmxp0Xk/7VbtX7XZ+DjfHQ3cmk+I2LBkGhlURl1c1kCB0M HkOyhCGgD/Rj5/qwGu8KRXlPlJqxtNIyiwR4yk2E= Received: from nm22.abv.bg (localhost [127.0.0.1]) by nm22.abv.bg (Postfix) with UTF8SMTP id 9FC68314428E for ; Wed, 11 Jun 2025 14:39:22 +0300 (EEST) Date: Wed, 11 Jun 2025 14:39:22 +0300 (EEST) From: Angel Angelov To: net@freebsd.org Message-ID: <1106147709.26643.1749641962654@nm22.abv.bg> Subject: poll / select List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26642_77576118.1749641962634" X-Mailer: AbvMail 3.0 X-Originating-IP: 91.211.234.155 X-Spamd-Result: default: False [0.09 / 15.00]; DWL_DNSWL_LOW(-1.00)[abv.bg:dkim]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(0.99)[0.992]; DMARC_POLICY_ALLOW(-0.50)[abv.bg,none]; NEURAL_SPAM_SHORT(0.20)[0.202]; R_DKIM_ALLOW(-0.20)[abv.bg:s=smtp-out]; R_SPF_ALLOW(-0.20)[+ip4:194.153.145.0/24:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[194.153.145.10:from]; FREEMAIL_FROM(0.00)[abv.bg]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SUSPICIOUS_AUTH_ORIGIN(0.00)[]; DKIM_TRACE(0.00)[abv.bg:+]; ASN(0.00)[asn:13147, ipnet:194.153.145.0/24, country:BG]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[abv.bg]; PREVIOUSLY_DELIVERED(0.00)[net@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; HAS_XOIP(0.00)[]; MLMMJ_DEST(0.00)[net@freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4bHNwr6csTz3Drm X-Spamd-Bar: / ------=_Part_26642_77576118.1749641962634 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi guys, I have a system with multiple clients (not more than 40) which send data asynchronously over UDP every 1 milisecond, what is the best way for receiving information: - using select/poll system calls on blocking or non blocking sockets - what should be the time parameter for these system calls - may be some other appraoch using threads Thanks, Angel ------=_Part_26642_77576118.1749641962634 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi guys,

I have a system with multiple client= s (not more than 40) which send data asynchronously over UDP every 1 milise= cond,
what is the best way for receiving information:
-= using select/poll system calls on blocking or non blocking sockets
- what should be the time parameter for these system calls - may be some other appraoch using threads

Than= ks,
Angel
------=_Part_26642_77576118.1749641962634--