IN: The session for the host and port to talk to.
IN: Function callback to store the retrieved data locally.
IN: Opaque data delivered to the data_writer callback to identify this data cookie.
IN: An identifier of the data record to retrieve.
IN: First byte of data range to retrieve.
IN: Last byte of data range to retrieve, or -1 for the end of the record.