added examples/chant.cpp for simple command-line NORM chat app
parent
1af8531178
commit
11b271cc28
|
|
@ -380,12 +380,18 @@ bool ChantCommand::OpenNormSession(NormInstanceHandle instance, const char* addr
|
||||||
}
|
}
|
||||||
if (is_multicast)
|
if (is_multicast)
|
||||||
{
|
{
|
||||||
|
NormSetTxPort(norm_session, port, true); // for single port operation
|
||||||
if (loopback)
|
if (loopback)
|
||||||
{
|
{
|
||||||
NormSetRxPortReuse(norm_session, true);
|
NormSetRxPortReuse(norm_session, true);
|
||||||
NormSetMulticastLoopback(norm_session, true);
|
NormSetMulticastLoopback(norm_session, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
NormSetTxPort(norm_session, port, false); // for single port operation
|
||||||
|
}
|
||||||
|
|
||||||
//NormSetLoopback(norm_session, loopback);
|
//NormSetLoopback(norm_session, loopback);
|
||||||
|
|
||||||
// Set some default parameters (maybe we should put parameter setting in Start())
|
// Set some default parameters (maybe we should put parameter setting in Start())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue