| 38 | namespace internal { |
| 39 | |
| 40 | Try<std::shared_ptr<SocketImpl>> SocketImpl::create(int_fd s, Kind kind) |
| 41 | { |
| 42 | switch (kind) { |
| 43 | case Kind::POLL: |
| 44 | return PollSocketImpl::create(s); |
| 45 | #ifdef USE_SSL_SOCKET |
| 46 | case Kind::SSL: |
| 47 | return LibeventSSLSocketImpl::create(s); |
| 48 | #endif |
| 49 | } |
| 50 | UNREACHABLE(); |
| 51 | } |
| 52 | |
| 53 | |
| 54 | Try<std::shared_ptr<SocketImpl>> SocketImpl::create( |
nothing calls this directly
no test coverage detected