mirror of https://github.com/ShaYmez/xlxd.git
undo PR #176
#176 is breaking ambed connectivity when ambed on same machine than xlxd. So this revert to previous version
This commit is contained in:
parent
c22c7f01e6
commit
73516e9f14
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -56,7 +56,6 @@ public:
|
|||
|
||||
// open & close
|
||||
bool Open(uint16);
|
||||
bool Open(const CIp &, uint16);
|
||||
void Close(void);
|
||||
int GetSocket(void) { return m_Socket; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue