{ "q1": { "type": "blank", "question": "\n

Given the URL:\n http://xavier.h4x0r.space:9123/script.py?name=magneto,\n identify the following components:

\n\n\n\n\n\n\n\n\n
Protocol:(1) ____
Domain Name:(2) ____
Port Number:(3) ____
Resource Path:(4) ____
Query Parameter:(5) ____
\n" }, "q2": { "type": "order", "question": "\n

Identify the networking system call or standard library\nfunctionyou should use to accomplish the following tasks:

\n\n

\n

    \n
  1. Create a file descriptor or endpoint for communicating over the network.
  2. \n
  3. Lookup the address information for a particular machine or service.
  4. \n
  5. Associate an address and service to a server network file descriptor (aka assign a name to a socket).
  6. \n
  7. Translate the network address structure into corresponding host and service strings.
  8. \n
  9. Establish a client network file descriptor to a specified address.
  10. \n
  11. Mark network file descriptor as waiting for incoming connections.
  12. \n
  13. Create a new network file descriptor based on a incoming connection.
  14. \n
  15. Convert network file descriptor into a file stream.
  16. \n
\n

\n", "responses": { "fdopen": "fdopen()", "socket": "socket()", "connect": "connect()", "listen": "listen()", "bind": "bind()", "accept": "accept()", "getnameinfo": "getnameinfo()", "getaddrinfo": "getaddrinfo()" } } }