sockets-for-pcl
sockets-for-pcl copied to clipboard
Make all network addresses available assigned to an ICommsInterface
Hi,
it's possible that a single network interface has multiple IP addresses assigned to it. Maybe we can extend ICommsInterface to return an IEnumerable
I just saw, that this isn't that easy. It requires many changes to ICommsInterface and all of their implementations, because multiple IP addresses mean multiple broadcast addresses too and - as one might guess - they have to be seen as a unit.
Hm, sounds like it would need significant changes (which is OK, if the existing assumptions are incorrect), but some thought as well. As you'd have seen the CommsInterface
side of things is a little bit .. hacky. I need to be more familiar with the implementations again to comment better. Without doing that and thinking aloud, would it make sense to duplicate at the CommsInterface
level for each available address, or would we be throwing away/obscuring important information about the adapters?
P.S., I created a room on gitter, might be easier to discuss some things there