| 479 | |
| 480 | template <> |
| 481 | inline Try<Socket<network::Address>> Socket<network::Address>::create( |
| 482 | Address::Family family, |
| 483 | SocketImpl::Kind kind) |
| 484 | { |
| 485 | Try<std::shared_ptr<SocketImpl>> impl = SocketImpl::create(family, kind); |
| 486 | if (impl.isError()) { |
| 487 | return Error(impl.error()); |
| 488 | } |
| 489 | return Socket(impl.get()); |
| 490 | } |
| 491 | |
| 492 | |
| 493 | template <> |