> The osi/os/WIN32/osdSock.c file could easily be changed to use getaddrinfo()
> instead of gethostbyaddr() and getnameinfo() instead of gethostbyname(). Do
> you know when Microsoft introduced the newer routines? Would making this
< change prevent EPICS from running on some older versions of Windows?
According to this document the minimum Windows version is Windows 2000, which I believe means that it won't run on Windows NT, but it will run on XP, Vista, Windows 7 and Windows 8.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520(v=vs.85).aspx
I doubt if anyone is running EPICS on NT?
Mark
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Johnson
Sent: Monday, March 11, 2013 11:45 AM
To: [email protected]
Cc: Eric Norum
Subject: Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname
Hi,
On 2013-03-11 Eric Norum wrote:
> Right -- we'd have to copy the existing posix/osdSock.c from posix/ to
> RTEMS/ before making the getaddrinfo change to posix/osdSock.c.
This is starting to sound more like a 3.15-level change now, since it's going
to affect multiple architectures. I confirmed Michael's observation that
getaddrinfo() is not provided in RTEMS 4.9.2.
On 2013-03-11 Mark Rivers wrote:
> I checked an getaddrinfo also appears to be present on Windows. If this
> adds useful functionality then should it also be changed in the Windows
> OSI code?
I suspect that unless you're suffering the same issues that Matt reported this
wouldn't really make any difference. I don't think it really adds any
functionality other than apparently checking local host names before or as
well as the DNS, although on Linux the older APIs are now documented as being
obsolete.
The osi/os/WIN32/osdSock.c file could easily be changed to use getaddrinfo()
instead of gethostbyaddr() and getnameinfo() instead of gethostbyname(). Do
you know when Microsoft introduced the newer routines? Would making this
change prevent EPICS from running on some older versions of Windows?
- Andrew
--
There is no such thing as a free lunch. When invited for lunch,
it is best to check if you are there to eat, or to be eaten.
-- Clive Robinson
- References:
- gethostbyname and getaddrinfo - multiple DNS entries for a hostname matthew.pearson
- Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Michael Davidsaver
- Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Eric Norum
- Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Andrew Johnson
- Navigate by Date:
- Prev:
Re: epics-perl & perlapi-5.10.1 Martin Konrad
- Next:
Re: Save and Restore parameters Mauro Giacchini
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Eric Norum
- Next:
Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|