The directions shutdown can close: RD stops receiving, WR stops sending and RDWR closes both.
shutdown
RD
WR
RDWR