*/
ret = uri_parse(default_reg_uri, &uri);
assert(ret);
- assert(agent_tcp_port);
- uri->port = agent_tcp_port;
+ assert(config.agent_tcp_port);
+ uri->port = config.agent_tcp_port;
sock = lttcomm_alloc_sock_from_uri(uri);
uri_free(uri);
}
DBG("[agent-thread] Listening on TCP port %u and socket %d",
- agent_tcp_port, sock->fd);
+ config.agent_tcp_port, sock->fd);
return sock;
{
assert(sock);
- DBG3("[agent-thread] Destroy TCP socket on port %u", agent_tcp_port);
+ DBG3("[agent-thread] Destroy TCP socket on port %u", config.agent_tcp_port);
/* This will return gracefully if fd is invalid. */
sock->ops->close(sock);