connect() on a UDP socket with nothing listening on the port

The client runs on Linux. The remote host is up and reachable, but no process is bound to the destination UDP port, and no firewall filters ICMP. What does this client observe?

main.cpp
int fd = socket(AF_INET, SOCK_DGRAM, 0);
connect(fd, (struct sockaddr*)&srv, sizeof(srv));
send(fd, "ping", 4, 0);                       // (1)

char buf[64];
ssize_t n = recv(fd, buf, sizeof(buf), 0);    // (2)

32 of 45 in Networking