changed SOCKET_DGRAM to SOCK_DGRAM