| 155 | } |
| 156 | |
| 157 | pn_connection_t *proactor::connect(const std::string &addr, struct handler *h, |
| 158 | pn_connection_t *c) { |
| 159 | if (!c) c = pn_connection(); |
| 160 | if (h) pn_connection_set_context(c, h); |
| 161 | pn_proactor_connect2(*this, c, NULL, addr.c_str()); |
| 162 | return c; |
| 163 | } |
| 164 | |
| 165 | } // namespace pn_test |
no test coverage detected