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

Method accept2

C++/inetserverstream.cpp:230–233  ·  view source on GitHub ↗

* @brief Accept a connection and return a socket connected to the client. * * The caller owns the client socket. * * @param numeric Specifies if the client's parameter (IP address, port) should * be delivered numerically in the src_host/src_port parameters. * @param accept_flags Flags specified in `accept(2)` * * @returns An owned pointer to a connected TCP/IP client socket object. */

Source from the content-addressed store, hash-verified

228 * @returns An owned pointer to a connected TCP/IP client socket object.
229 */
230unique_ptr<inet_stream> inet_stream_server::accept2(int numeric,
231 int accept_flags) {
232 return unique_ptr<inet_stream>(accept(numeric, accept_flags));
233}
234
235const string& inet_stream_server::getbindhost(void) { return gethost(); }
236

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected