gga
12/21/2006 3:28:00 AM
msoulier ha escrito:
> Looking for dns support, I found the gethostbyname method as a class
> method of TCPSocket in the socket library.
>
> Seems like an odd place, considering that gethostbyname is hardly
> specific to TCP protocol alone.
>
> Any idea why it was put there?
>
It wasn't. It's part of Socket, which seems rather logical. TCPSocket
just inherits from Socket.