MCPcopy Create free account
hub / github.com/dermesser/libsocket / accept2

Method accept2

C++/unixserverstream.cpp:146–148  ·  view source on GitHub ↗

* @brief Accepts an incoming connection on a UNIX domain stream server socket * and returns an owned pointer. * * The owned pointer will be closed on destruction. * * @param flags Flags for `accept4()`; useless on other implementations. */

Source from the content-addressed store, hash-verified

144 * @param flags Flags for `accept4()`; useless on other implementations.
145 */
146unique_ptr<unix_stream_client> unix_stream_server::accept2(int flags) {
147 return unique_ptr<unix_stream_client>(accept(flags));
148}
149} // namespace libsocket

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected