#176 is breaking ambed connectivity when ambed on same machine than xlxd. So this revert to previous version
This commit is contained in:
LX3JL 2021-01-26 11:05:13 +01:00
parent c22c7f01e6
commit 73516e9f14
4 changed files with 3 additions and 9 deletions

2
src/ccodecstream.cpp Normal file → Executable file
View File

@ -99,7 +99,7 @@ bool CCodecStream::Init(uint16 uiPort)
m_uiPort = uiPort;
// create our socket
ok = m_Socket.Open(CIp("0.0.0.0"), uiPort);
ok = m_Socket.Open(uiPort);
if ( ok )
{
// start thread;

2
src/ctranscoder.cpp Normal file → Executable file
View File

@ -97,7 +97,7 @@ bool CTranscoder::Init(void)
m_Ip = g_Reflector.GetTranscoderIp();
// create our socket
ok = m_Socket.Open(CIp("0.0.0.0"), TRANSCODER_PORT);
ok = m_Socket.Open(TRANSCODER_PORT);
if ( ok )
{
// start thread;

7
src/cudpsocket.cpp Normal file → Executable file
View File

@ -51,11 +51,6 @@ CUdpSocket::~CUdpSocket()
// open & close
bool CUdpSocket::Open(uint16 uiPort)
{
return Open(g_Reflector.GetListenIp(), uiPort);
}
bool CUdpSocket::Open(const CIp & listenIp, uint16 uiPort)
{
bool open = false;
@ -67,7 +62,7 @@ bool CUdpSocket::Open(const CIp & listenIp, uint16 uiPort)
::memset(&m_SocketAddr, 0, sizeof(struct sockaddr_in));
m_SocketAddr.sin_family = AF_INET;
m_SocketAddr.sin_port = htons(uiPort);
m_SocketAddr.sin_addr.s_addr = inet_addr(listenIp);
m_SocketAddr.sin_addr.s_addr = inet_addr(g_Reflector.GetListenIp());
if ( bind(m_Socket, (struct sockaddr *)&m_SocketAddr, sizeof(struct sockaddr_in)) == 0 )
{

1
src/cudpsocket.h Normal file → Executable file
View File

@ -56,7 +56,6 @@ public:
// open & close
bool Open(uint16);
bool Open(const CIp &, uint16);
void Close(void);
int GetSocket(void) { return m_Socket; }