Compare commits
No commits in common. "f0398b717bab6050451d8b4e7343ca7e35adc214" and "99e0f7d82cb3d5d5bf29b49f1464dc5ebab2ca80" have entirely different histories.
f0398b717b
...
99e0f7d82c
@ -6,7 +6,7 @@
|
||||
#include "TCPClient.h"
|
||||
|
||||
#define MAX_CLIENT -1
|
||||
#define DEBUG_TCPS
|
||||
//#define DEBUG_TCPS
|
||||
|
||||
|
||||
template <typename T>
|
||||
@ -137,9 +137,12 @@ class TCPServer
|
||||
#endif
|
||||
_currentClient->_clientState = TCPClient::DISCARDED;
|
||||
}
|
||||
|
||||
|
||||
if(_currentClient->_dataSize > 0)
|
||||
{
|
||||
_currentClient->_newDataAvailable = false;
|
||||
}
|
||||
processClientData(_currentClient);//We process the actual data
|
||||
_currentClient->_newDataAvailable = false;
|
||||
|
||||
if(_currentClient->_clientState == TCPClient::ClientState::DISCARDED)
|
||||
{
|
||||
|
@ -49,21 +49,3 @@ char *dateTimeFormater(char *pointer, const uint8_t value, const char character)
|
||||
|
||||
return pointer;
|
||||
}
|
||||
|
||||
char *lastIndexOf(char *str, const char character)
|
||||
{
|
||||
char *last(NULL), *current(str);
|
||||
do
|
||||
{
|
||||
current = strchr(current, character);
|
||||
if(current != NULL)
|
||||
{
|
||||
last = current;
|
||||
if(*(current+1) == '\0')break;
|
||||
|
||||
current += 1;
|
||||
}
|
||||
}while(current != NULL);
|
||||
|
||||
return last;
|
||||
}
|
||||
|
@ -55,8 +55,6 @@ typedef struct viewLink{
|
||||
|
||||
char *addChar(char *pointer, const char character);
|
||||
|
||||
char *lastIndexOf(char *str, const char character);
|
||||
|
||||
char *dateTimeFormater(char *pointer, const uint8_t value, const char character);
|
||||
|
||||
#endif //DEFINITION_H
|
||||
|
Loading…
Reference in New Issue
Block a user