Functional C++ implementation using sockets at desired data speed. Sample program.