Hello:
> OK, I'll commit this to SVN during evening.
hehe i have readed this now after i have the change in my local tree
hahahaha, this way:
private IPAddress GetIPAddress(string dataSource, AddressFamily
addressFamily)
{
if (!IPAddress.Parse(hostname, out addr))
{
return Dns.GetHostEntry(hostname).AddressList[0];
}
IPAddress[] addresses =
Dns.GetHostEntry(dataSource).AddressList;
// Try to avoid problems with IPV6 addresses
foreach (IPAddress address in addresses)
{
if (address.AddressFamily == addressFamily)
{
return address;
}
}
return addresses[0];
}
Will it be correct or not ??
--
Carlos Guzmán Álvarez
Vigo-Spain
Blog : http://carlosga.wordpress.com/
FirebirdClient : http://www.firebirdsql.org/
XMPP Client : http://code.google.com/p/xmppclient/
ohloh : http://www.ohloh.net/accounts/4138
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider