* @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. */
| 228 | * @returns An owned pointer to a connected TCP/IP client socket object. |
| 229 | */ |
| 230 | unique_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 | |
| 235 | const string& inet_stream_server::getbindhost(void) { return gethost(); } |
| 236 |