I/O Multiplexing: select and poll
I/O Multiplexing: select and poll
I/O Multiplexing: select and poll
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Function shutdown<br />
#include <br />
int shutdown(int sockfd, int howto);<br />
howto: SHUT_RD, SHUT_WR, SHUT_RDWR<br />
returns: 0 if OK, -1 on error<br />
•initiates TCP normal termination<br />
regardless of descriptor’s reference<br />
count<br />
•<strong>select</strong>ively closes one direction of the<br />
connection (SHUT_RD or SHUT_WR)<br />
24