Add get_user_input function.
Add should_quit function.
Structure of main to send and receive.
get_link function to avoid duplication of code.
Factor out send data function, include quit msg.
n2