From: gga Date: 2006-12-21T12:30:06+09:00 Subject: Re: why is gethostbyname in TCPSocket? 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.