Added udp receive timeout funtionallity.
Fixed packet receiving errors, added GetHostByname function