Did you know ... Search Documentation:
Predicate receive/2
 receive(+Connection, +Stream) is det[private]
Read and process incoming messages from Stream.