change getc(1) to read(1) in peer.

todo: check applicability of recvfrom vs. read
and send vs. write, etc.