Menu ▾ ▴

#21 Configure flags while creating sockets.

open
nobody
None
5
2024-09-07
2018-06-28
No

On Windows, when we create tcp sockets, asio library creates a Windows socket via WSASocket in asio/detail/impl/socket_ops.ipp.

WSASocket function has an option to provide some flags which changes some properties of the socket being created e.g., whether the socket is inheritable by the process' children. More details here

It would be helpful if asio library provides an option to configure this flag.

Discussion

  • Lockywolf

    Lockywolf - 2024-09-07

    That is a great idea.

     

Log in to post a comment.