Refactored recv_packet
Added a loop for testing
:
Registers client
Removed recv_packet and added recv_header and recv_data
Removed recv_packet and added recv_header and recv_data
Uses recv_header and recv_data instead of recv_packet
Added some documentation
Checks if client with the same name is already registered
Added send_error
Added send_error
Receives after sending register packet
Sends error packet if client name already exists