Only read one record at a time in sptps_receive_data().
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 10 May 2015 18:28:11 +0000 (19:28 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sun, 10 May 2015 20:08:57 +0000 (21:08 +0100)
commitd237efd325cd7bdd73f5eb111c769470238dce6e
treeab0c9653781492501be73dfa1eea9799c273ea54
parentde14308840a96060d700c93117789e83ec948c01
Only read one record at a time in sptps_receive_data().

sptps_receive_data() always consumes the entire buffer passed to it,
which is somewhat inflexible. This commit improves the interface so that
sptps_receive_data() consumes at most one record. The goal is to allow
non-SPTPS stuff to be interleaved with SPTPS records in a single TCP
stream.
src/meta.c
src/sptps.c
src/sptps.h