Overview


There are five steps

  1. Figure out the IP address and port to connect to
  2. Create a socket
  3. Connect the socket to the remote server
  4. read() and write() data using the socket
  5. Close the socket

Untitled

You might want to lookup address structures in Network and Socket

ex15 answer.zip

Steps in Detail

Figure out the IP address and port to connect to


Reference: Resolving DNS Names

Create a Socket