Add utility for recving tcp data. These functions could be refactored
a bit, but currently handle ssl splitting data unexpectedly.