Should data be sent all at once, or one by one in the WHOIS protocol?
So, when I create a whois server, should I do this:
Client sends "example.tld" to server
Server sends "Some info about example.tld" to the client
Server sends "Some more info about example.tld" to the client
Server sends "Remaining info about example.tld" to the client
CONNECTION CLOSED
OR:
Client sends "example.tld" to server
Server sends "All info about example.tld at once" to the client
CONNECTION CLOSED
So for Python, should I do socket.send(bytes("info about that domain requested\r\n", encoding="UTF-8"))
for each line? Or should I do it for all of the lines at once, i.e., socket.send(bytes("all info about that domain\r\nthat was requested", encoding="UTF-8"))