Podcast
Questions and Answers
What is the purpose of Ruby's Socket Library?
What is the purpose of Ruby's Socket Library?
The purpose of Ruby's Socket Library is to provide thin bindings to dependable C libraries that have remained stable over many releases of Ruby.
What is the difference between a STREAM and a DGRAM socket?
What is the difference between a STREAM and a DGRAM socket?
A STREAM socket is used for communication using a stream and is provided by TCP, while a DGRAM socket is used for communication using datagrams and is provided by UDP.
What is the purpose of DNS?
What is the purpose of DNS?
The purpose of DNS is to map host names to IP addresses, so that instead of having to remember the specific address of the host one wants to talk to, they only have to remember the host's name and then ask DNS to resolve that name to an address.