added base code for communicating to pi with streaming sockets.