Hello:
> It's not a big change and it's only useful in certain circumstances, but it
> *is* a better solution.
this is what the provider is doing right now ( i have checked it from
v2.5, but i think v2.0+ should be doing the same thing ):
private IPAddress GetIPAddress(string dataSourc
On 8/21/07, Dean Harding <[EMAIL PROTECTED]> wrote:
> Here is the output for two different addresses:
>
> D:\Projects\TestProject\bin\Debug>test 10.0.0.33
> Testing: 10.0.0.33
> Hostname: xx
> Address: fe80::69eb:837:6a0:5c66%8
> Address: fe80::5efe:10.0.0.33%11
> Address: 10.0.0.33
>
> D:\Proj
On 8/21/07, Carlos Guzmán Álvarez <[EMAIL PROTECTED]> wrote:
> Hello:
>
> > It's not a big change and it's only useful in certain circumstances, but it
> > *is* a better solution.
>
> this is what the provider is doing right now ( i have checked it from
> v2.5, but i think v2.0+ should be doing the
Should try to explicitly IPAddress.TryParse before calling Dns.GetHostEntry
---
Key: DNET-112
URL: http://tracker.firebirdsql.org/browse/DNET-112
Project: .NET Data provider
> The change is, that you're first doing stuff with DNS and else the IP
> direct. Maybe trying first IP (we can expect, that if somebody
> provides IP, (s)he's know it and knows what's doing), so we needn't to
> check anything else. The possible error in fact will occur during
> connection anyway.
On 8/21/07, Dean Harding <[EMAIL PROTECTED]> wrote:
> Notice that in this case it returns the addresses in the same order,
> regardless of what IP I originally pass to Dns.GetHostEntry. From my
I think it' because it doesn't matter what IP you choose to connect to
server (from routing POV). Of cou
Hello:
> I don't know, where Carlos is right now. But when he doesn't drop the
> ticket till evening, I'll create changes and do tests.
I'm at job and can't do the change, but we can add it to 2.5 sources and
see what happens ;)
--
Best regards
Carlos Guzmán Álvarez
Vigo-Spain
--
On 8/21/07, Carlos Guzmán Álvarez <[EMAIL PROTECTED]> wrote:
> Hello:
>
> > I don't know, where Carlos is right now. But when he doesn't drop the
> > ticket till evening, I'll create changes and do tests.
>
> I'm at job and can't do the change, but we can add it to 2.5 sources and
> see what happen
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)
Hello:
Sorry this way ;)
private IPAddress GetIPAddress(string dataSource, AddressFamily
addressFamily)
{
IPAddress ipaddress = null;
if (!IPAddress.TryParse(dataSource, out ipaddress))
{
return ipaddress;
}
On 8/21/07, Carlos Guzmán Álvarez <[EMAIL PROTECTED]> wrote:
> Hello:
>
> Sorry this way ;)
Looks good.
--
Jiri {x2} Cincura (Microsoft Student Partner)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com
-
This SF.ne
Hello:
>> Sorry this way ;)
>
> Looks good.
Thanks !!! i will do the commit a little later today !! XD
--
Carlos Guzmán Álvarez
Vigo-Spain
Blog: http://carlosga.wordpress.com/
FirebirdClient : http://www.firebirdsql.org/
XMPP Client : http://code.google.com/p/xmppclient/
oh
> if (!IPAddress.TryParse(dataSource, out ipaddress))
> {
> return ipaddress;
> }
Should be:
if (IPAddress.TryParse(dataSource, out ipaddress))
{
return ipaddress;
}
Otherwise, great :-)
Dean.
> -Original Message-
13 matches
Mail list logo