Subject | Re: Connection to server takes 2 minutes |
---|---|
Author | peter_jacobi.rm |
Post date | 2003-09-03T15:05:33Z |
Hi Helen, All,
In firebird-support@yahoogroups.com, Helen Borrie wrote:
true - it is possible and much saner to look firs for
a dottet decimal:
host.s_addr = inet_addr (servername);
if (host.s_addr == INADDR_NONE) {
// Wasn't an IP address string, assume it is a name
hostent *hostentry = gethostbyname (servername);
Regards,
Peter Jacobi
In firebird-support@yahoogroups.com, Helen Borrie wrote:
> The IP address gets passed to the network pipe or layer as a string.If
> the string can't be resolved to a <servername> parameter in thelocal HOSTS
> file and DHCP can't identify it (or isn't running), only then does theWhereas I agree on NetBUI advice etc, the above isn't quite
> network layer break the string up and try it out as an IP address.
true - it is possible and much saner to look firs for
a dottet decimal:
host.s_addr = inet_addr (servername);
if (host.s_addr == INADDR_NONE) {
// Wasn't an IP address string, assume it is a name
hostent *hostentry = gethostbyname (servername);
Regards,
Peter Jacobi