| 214 | } |
| 215 | |
| 216 | void |
| 217 | Url::setPort(const uint16_t port) |
| 218 | { |
| 219 | if (!isInitialized()) { |
| 220 | LOG_ERROR("Url %p not initialized", this); |
| 221 | return; |
| 222 | } |
| 223 | |
| 224 | if (TSUrlPortSet(state_->hdr_buf_, state_->url_loc_, port) == TS_SUCCESS) { |
| 225 | LOG_DEBUG("Set port to %d", port); |
| 226 | } else { |
| 227 | LOG_ERROR("Could not set port; hdr_buf %p, url_loc %p", state_->hdr_buf_, state_->url_loc_); |
| 228 | } |
| 229 | } |
no test coverage detected