Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Carlos Guzmán Álvarez
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

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard

2007-08-21 Thread Jiri Cincura
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

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Jiri Cincura
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

[Firebird-net-provider] [FB-Tracker] Created: (DNET-112) Should try to explicitly IPAddress.TryParse before calling Dns.GetHostEntry

2007-08-21 Thread Dean Harding (JIRA)
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

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Dean Harding
> 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.

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Jiri Cincura
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

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Carlos Guzmán Álvarez
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 --

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Jiri Cincura
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

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Carlos Guzmán Álvarez
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)

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Carlos Guzmán Álvarez
Hello: Sorry this way ;) private IPAddress GetIPAddress(string dataSource, AddressFamily addressFamily) { IPAddress ipaddress = null; if (!IPAddress.TryParse(dataSource, out ipaddress)) { return ipaddress; }

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Jiri Cincura
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

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Carlos Guzmán Álvarez
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

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Dean Harding
> if (!IPAddress.TryParse(dataSource, out ipaddress)) > { > return ipaddress; > } Should be: if (IPAddress.TryParse(dataSource, out ipaddress)) { return ipaddress; } Otherwise, great :-) Dean. > -Original Message-