can listening socket write end be shut down?

Viewed 54

The question title: Can I shutdown a listening socket write end?

The socket is obviously will not send user data. But the socket still can send some auxiliary messages that are produced by the system. So, will the socket still operate as a normal server side socket that accepts connections?

UPDATE

The shutdown on a listening socket returns ENOTCONN error. The socket must be able to send, or receive. The server socket is not.

0 Answers
Related