Stream-based interface for datagram sockets