Set transport in locator of TCP server sockets
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
b84eee5abb
commit
01f9c0599c
1 changed files with 1 additions and 0 deletions
|
@ -699,6 +699,7 @@ static bool ddsi_tcp_supports (const struct ddsi_tran_factory *fact_cmn, int32_t
|
||||||
|
|
||||||
static int ddsi_tcp_locator (struct ddsi_tran_factory *fact_cmn, ddsi_tran_base_t base, nn_locator_t *loc)
|
static int ddsi_tcp_locator (struct ddsi_tran_factory *fact_cmn, ddsi_tran_base_t base, nn_locator_t *loc)
|
||||||
{
|
{
|
||||||
|
loc->tran = fact_cmn;
|
||||||
loc->kind = fact_cmn->m_kind;
|
loc->kind = fact_cmn->m_kind;
|
||||||
memcpy(loc->address, base->gv->extloc.address, sizeof(loc->address));
|
memcpy(loc->address, base->gv->extloc.address, sizeof(loc->address));
|
||||||
loc->port = base->m_port;
|
loc->port = base->m_port;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue