lkml.org 
[lkml]   [2003]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectanyone ever done multicast AF_UNIX sockets?

It is fairly common to want to distribute information between a single
sender and multiple receivers on a single box.

Multicast IP sockets are one possibility, but then you have additional
overhead in the IP stack.

Unix sockets are more efficient and give notification if the listener is
not present, but the problem then becomes that you must do one syscall
for each listener.

So, here's my main point--has anyone ever considered the concept of
multicast AF_UNIX sockets?

The main features would be:
--ability to associate/disassociate a socket with a multicast address
--ability to associate/disassociate with all multicast addresses
(possibly through some kind of raw socket thing, or maybe a simple
wildcard multicast address)
--on process death all sockets owned by that process are disassociated
from any multicast addresses that they were associated with
--on sending a packet to a multicast address and there are no sockets
associated with it, return -1 with errno=ECONNREFUSED

The association/disassociation could be done using the setsockopt()
calls the same as with udp sockets, everything else would be the same
from a userspace perspective.

Any thoughts? How hard would this be to put in?

Chris


--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [from the cache]
©2003-2011 Jasper Spaans