Project

General

Profile

Actions

Bug #714

closed

gethostbyname() is obsolete and should be replaced by getaddrinfo()

Added by Jörg Riesmeier over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Library
Target version:
Start date:
2017-01-27
Due date:
% Done:

100%

Estimated time:
Module:
dcmnet
Operating System:
all
Compiler:

Description

Both on Linux and Windows the gethostbyname() function is marked as obsolete or deprecated and should, therefore, be replaced by getaddrinfo().


Related issues 1 (0 open1 closed)

Related to DCMTK - Bug #715: gethostbyaddr() is obsolete and should be replaced by getnameinfo()ClosedMarco Eichelberg2017-01-27

Actions
Actions #1

Updated by Jan Schlamelcher over 8 years ago

  • Assignee set to Thorben Hasenpusch
Actions #2

Updated by Marco Eichelberg over 8 years ago

  • Target version set to 3.6.3
Actions #3

Updated by Thorben Hasenpusch over 8 years ago

I'm not sure how much value there is in replacing one function with the other.

Keeping the current API and just emulating what gethostbyname() does using getaddrinfo() is somewhat cumbersome, and it doesn't really get us anything.
The chances that gethostbyname() vanishes in an OS release are, I think, very small.

The other option is to expose more-or-less the exact API of the new function as an addition to ofstd, analogous to the existing wrapper of gethostbyname().
However, since its functionality cannot be emulated by the older function, that would mandate the existence of getaddrinfo() for all DMCTK targets; I don't know if that is reasonable.

(This also applies to #715)

Actions #4

Updated by Marco Eichelberg almost 8 years ago

  • Status changed from New to Closed
  • Assignee changed from Thorben Hasenpusch to Marco Eichelberg
  • % Done changed from 0 to 100

Closed by commit #77911e6 (public DCMTK) and #0c2f405 (private modules).

Actions

Also available in: Atom PDF