Many changes

This commit is contained in:
Brad Arant committed 2021-08-05 13:07:53 -07:00
1 parent 50bbfcc3c3
commit 46f98dff69
11 files changed
+110 -100

No files matched your search

+3 -3
View File
@@ -15,7 +15,7 @@ namespace core {
}
void TCPSession::protocol(coreutils::ZString data) {
if(!server.commands.processRequest(data, this, out))
if(!server.commands.processRequest(data, *this))
if(data.getLength() != 0)
server.sessionErrorHandler("Invalid data received.", out);
}
@@ -25,7 +25,7 @@ namespace core {
protocol((char *)"");
send();
if(term)
shutdown("termination requested");
shutdown("termination requested");
}
void TCPSession::onConnected() {}
@@ -39,7 +39,7 @@ namespace core {
if(blockSize == 0) {
lineLength = strcspn(lineBuffer, "\r\n");
if(lineLength == lineBufferSize)
break;
break;
onLineReceived(coreutils::ZString(lineBuffer, lineLength));
if(lineBuffer[lineLength] == '\r')
++lineLength;