{"action":"created","issue":{"url":"https://api.github.com/repos/pocoproject/poco/issues/792","labels_url":"https://api.github.com/repos/pocoproject/poco/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/pocoproject/poco/issues/792/comments","events_url":"https://api.github.com/repos/pocoproject/poco/issues/792/events","html_url":"https://github.com/pocoproject/poco/issues/792","id":71558390,"number":792,"title":"Try to use default interface in MulticastSocket failed with: Not found: IPv4 family address not found","user":{"login":"mar-na","id":3833880,"avatar_url":"https://avatars.githubusercontent.com/u/3833880?v=3","gravatar_id":"","url":"https://api.github.com/users/mar-na","html_url":"https://github.com/mar-na","followers_url":"https://api.github.com/users/mar-na/followers","following_url":"https://api.github.com/users/mar-na/following{/other_user}","gists_url":"https://api.github.com/users/mar-na/gists{/gist_id}","starred_url":"https://api.github.com/users/mar-na/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mar-na/subscriptions","organizations_url":"https://api.github.com/users/mar-na/orgs","repos_url":"https://api.github.com/users/mar-na/repos","events_url":"https://api.github.com/users/mar-na/events{/privacy}","received_events_url":"https://api.github.com/users/mar-na/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pocoproject/poco/labels/documentation","name":"documentation","color":"207de5"},{"url":"https://api.github.com/repos/pocoproject/poco/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"obiltschnig","id":201635,"avatar_url":"https://avatars.githubusercontent.com/u/201635?v=3","gravatar_id":"","url":"https://api.github.com/users/obiltschnig","html_url":"https://github.com/obiltschnig","followers_url":"https://api.github.com/users/obiltschnig/followers","following_url":"https://api.github.com/users/obiltschnig/following{/other_user}","gists_url":"https://api.github.com/users/obiltschnig/gists{/gist_id}","starred_url":"https://api.github.com/users/obiltschnig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obiltschnig/subscriptions","organizations_url":"https://api.github.com/users/obiltschnig/orgs","repos_url":"https://api.github.com/users/obiltschnig/repos","events_url":"https://api.github.com/users/obiltschnig/events{/privacy}","received_events_url":"https://api.github.com/users/obiltschnig/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-28T11:09:50Z","updated_at":"2015-04-28T23:24:33Z","closed_at":null,"body":"From the MulticastSocket header:\r\n\r\n```\r\nvoid setInterface(const NetworkInterface& interfc);\r\n\t/// Sets the interface used for sending multicast packets.\r\n\t///\r\n\t/// To select the default interface, specify an empty\r\n\t/// interface.\r\n\t///\r\n\t/// This is done by setting the IP_MULTICAST_IF/IPV6_MULTICAST_IF\r\n\t/// socket option.\r\n```\r\n\r\nFrom the NetworkInterface header:\r\n\r\n```\r\nNetworkInterface(unsigned index = NO_INDEX);\r\n\t/// Creates a NetworkInterface representing the\r\n\t/// default interface.\r\n\t///\r\n\t/// The name is empty, the IP address is the wildcard\r\n\t/// address and the index is max value of unsigned integer.\r\n```\t\r\n\t\t\r\nI want use the default interface so I try to call setInterface with an empty NetworkInterface.\r\nBut this throws an 'Not found: IPv4 family address not found' exception:\r\n\r\n```cpp\r\nMulticastSocket socket;\t\r\n// ...\r\nNetworkInterface networkInterface;\r\nsocket.setInterface(networkInterface);     // <- Throws Not found: IPv4 family address not found.\r\n```\r\n\r\nWhat do I wrong? Is this supported or should I better use NetworkInterface::list?"},"comment":{"url":"https://api.github.com/repos/pocoproject/poco/issues/comments/97261903","html_url":"https://github.com/pocoproject/poco/issues/792#issuecomment-97261903","issue_url":"https://api.github.com/repos/pocoproject/poco/issues/792","id":97261903,"user":{"login":"aleks-f","id":2429093,"avatar_url":"https://avatars.githubusercontent.com/u/2429093?v=3","gravatar_id":"","url":"https://api.github.com/users/aleks-f","html_url":"https://github.com/aleks-f","followers_url":"https://api.github.com/users/aleks-f/followers","following_url":"https://api.github.com/users/aleks-f/following{/other_user}","gists_url":"https://api.github.com/users/aleks-f/gists{/gist_id}","starred_url":"https://api.github.com/users/aleks-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleks-f/subscriptions","organizations_url":"https://api.github.com/users/aleks-f/orgs","repos_url":"https://api.github.com/users/aleks-f/repos","events_url":"https://api.github.com/users/aleks-f/events{/privacy}","received_events_url":"https://api.github.com/users/aleks-f/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T23:24:33Z","updated_at":"2015-04-28T23:24:33Z","body":"This is probably a documentation bug; while you could construct Multicast socket with a family, it would still throw because NetworkInterface contains no addresses."}}