mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2024-11-29 10:38:39 -05:00
Fixed minor bug in simplified code.
This commit is contained in:
parent
f1eb11a0d3
commit
c54330e414
@ -80,7 +80,7 @@ bool CNXCoreNetwork::write(const unsigned char* data, unsigned int len)
|
||||
return m_socket.write(buffer, 102U, m_address, NXCORE_PORT);
|
||||
}
|
||||
|
||||
unsigned int CNXCoreNetwork::read(unsigned char* data, unsigned int len)
|
||||
unsigned int CNXCoreNetwork::read(unsigned char* data)
|
||||
{
|
||||
unsigned char buffer[BUFFER_LENGTH];
|
||||
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
|
||||
bool write(const unsigned char* data, unsigned int len);
|
||||
|
||||
unsigned int read(unsigned char* data, unsigned int len);
|
||||
unsigned int read(unsigned char* data);
|
||||
|
||||
void close();
|
||||
|
||||
|
@ -102,7 +102,7 @@ unsigned int CNXDNNetwork::read(unsigned char* data, unsigned int length, in_add
|
||||
if (::memcmp(data, "NXDN", 4U) != 0)
|
||||
return 0U;
|
||||
|
||||
if (length != 15 && length != 43)
|
||||
if (len != 15 && len != 43)
|
||||
return 0U;
|
||||
|
||||
if (m_debug)
|
||||
|
@ -300,7 +300,7 @@ void CNXDNReflector::run()
|
||||
}
|
||||
|
||||
if (m_nxCoreNetwork != NULL) {
|
||||
len = m_nxCoreNetwork->read(buffer, 200U);
|
||||
len = m_nxCoreNetwork->read(buffer);
|
||||
if (len > 0U) {
|
||||
if (current == NULL) {
|
||||
if (!nxCoreActive) {
|
||||
|
Loading…
Reference in New Issue
Block a user