calculating host_count from hosts array
fixed forgoten integer initialization
storing parsed hosts in hosts array, refactoring of parse_req fn
calling parse_req() in conn_h() and added cleanup in conn_h()
fixed problems with recv() the request
allocating space for results