Martin Sustrik
Martin Sustrik

Reputation: 813

Sockets: Non-blocking shutdown(SHUT_WR)?

Is there a way to do shutdown(SHUT_WR) on socket asynchronously?

I.e. start the operation, then wait for its completion using poll?

Upvotes: 2

Views: 441

Answers (1)

user207421
user207421

Reputation: 310936

It's asynchronous anyway. It just queues a FIN behind the current contents of the socket send buffer, if any, which really just amounts to setting a bit somewhere. There's no poll() operation for completion of any send, let alone this one.

Upvotes: 3

Related Questions