On 6/26/19 9:15 AM, David Jander wrote: [...] > Imagine a J1939 "server" that has 20 "clients" connected to it. It will thus > have 21 open sockets (one for the server itself (the bind()ed socket) and one > for each of the "clients" (the bind()ed and connect()ed sockets). Now imagine > the trouble of having to deal with the fact that every single message from > client A is received on all 21 sockets duplicated! You don't want that. Not > for big messages, nor for small ones. Every single message from client A is _not_ received on all 21 sockets. It's only recieved on the initial "server" bind()ed socket and the only one "client" bind()ed and connect()ed socket. On the other hand the "server" socket will receive all messages that the all the 20 "client" socket will receive. And we're trying to avoid that. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Attachment:
signature.asc
Description: OpenPGP digital signature