equal
deleted
inserted
replaced
54 if (socket) { |
54 if (socket) { |
55 // already configured, reuse |
55 // already configured, reuse |
56 } else { |
56 } else { |
57 std::vector<SocketOption> options; |
57 std::vector<SocketOption> options; |
58 for (auto o : configuration.options) options.push_back({convertor.to_bytes(o.name), convertor.to_bytes(o.value)}); |
58 for (auto o : configuration.options) options.push_back({convertor.to_bytes(o.name), convertor.to_bytes(o.value)}); |
59 const std::string connectionString = convertor.to_bytes(configuration.connectionString); |
59 if (auto f = SocketFactory::find(options)) socket = f->open(options); |
60 if (auto f = SocketFactory::find(connectionString)) socket = f->open(connectionString); |
|
61 } |
60 } |
62 } |
61 } |
63 |
62 |
64 public: |
63 public: |
65 |
64 |