sockets-for-pcl icon indicating copy to clipboard operation
sockets-for-pcl copied to clipboard

Make all network addresses available assigned to an ICommsInterface

Open fubar-coder opened this issue 9 years ago • 3 comments

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 for all assigned addresses?

fubar-coder avatar Aug 09 '15 06:08 fubar-coder

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.

fubar-coder avatar Aug 09 '15 20:08 fubar-coder

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?

rdavisau avatar Aug 09 '15 22:08 rdavisau

P.S., I created a room on gitter, might be easier to discuss some things there

rdavisau avatar Aug 09 '15 22:08 rdavisau