Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Shutdown of a socket, to know how to end.

Thank you

Shutdown of a socket, to know how to end.

SIGPIPE signal

Shutdown of a socket, to know how to end.

My understanding is the key to how you shutdown, which is on the side of the operation, what if
1, shutdown (sockfd, SHUT_RD), end-to-end connection at this time is to send the data, then he would return SIGPIPE signal at this time is to end recv so, not knowing there were already a shutdown
2, shutdown (sockfd, SHUT_WR), the terminal is send data at this time, then it can not imagine that if correct will be received in recv recv FIN and then return 0
3, shutdown (sockfd, SHUT_RDWR) or send recv whether in the end we know that recv return 0 send signals received SIGPIPE
These views are purely personal opinion, if wrong, hope you enlighten ~~~~~ :)



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com