aboutsummaryrefslogtreecommitdiff
path: root/libpipe/stream.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix const warningsSamuel Thibault2022-01-171-2/+2
| | | | | Now that the RPCs have const, this forces us cleaning our const-meant functions.
* Add MSG_PEEK support to pflocalSamuel Thibault2012-04-271-2/+11
| | | | | | | | | | | | | | * libpipe/pq.h (packet_peek): Declare new function. * libpipe/pq.c (packet_read): Move code to new `packet_fetch' function, call it with `remove' set to 1. (packet_fetch): New function with code from `packet_read', but do not remove data if `remove' is 0. (packet_peek): New function, calls `packet_fetch' with `remove' set to 0. * libpipe/dgram.c (dgram_read): When MSG_PEEK is in *flags, do not dequeue and only peek data. * libpipe/seqpack.c (seqpack_read): Likewise. * libpipe/stream.c (stream_read): Likewise. * pflocal/socket.c (S_socket_recv): Pass MSG_PEEK flag to libpipe.
* Initial revisionMiles Bader1995-07-261-0/+68