Just like tcp_connect and udp_bind it should return an EINVAL when the
handle is of an invalid type or when the network address is faulty.
The error codes are inconsistent when checking for bad addresses:
The first returns EINVAL, the other EFAULT. I discussed with bnoordhuis this on the channel, it shoulds return EINVAL, because EFAULT means bad memory.
Furthermore, uv_tcp/udp_bind and uv_tcp_connect does checks on the handle and address but uv_udp_send doesn't. Should it check for a valid handle and a valid address too?
Fix incosistent error code handling in tcp_bind.
Thanks, landed in 017e2d5.