Github user sharpdevel commented on the pull request:
https://github.com/apache/thrift/pull/377#issuecomment-74635670
I could imagine something like this:
if (typeof(TcpClient).GetProperty("DualMode") == null)
{
client = new TcpClient(AddressFamily.InterNetwork);
}
else
{
client = new TcpClient(AddressFamily.InterNetworkV6);
client.Client.DualMode = true;
}?
but I must admit that I'm not that fit in Mono and cornercasing it with
ifdefs
________________________________
Von: Jens Geyer <[email protected]>
Gesendet: Montag, 16. Februar 2015 22:13
An: apache/thrift
Cc: Tobias Mundt
Betreff: Re: [thrift] Issue with IPv6 an IPv4 on windows machines (#377)
Can we do something with #ifdefs to protect against when it is not
available?
-
Reply to this email directly or view it on
GitHub<https://github.com/apache/thrift/pull/377#issuecomment-74573196>.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---