Adding support for SOCK_DGRAM and connect: round 1.