Compiles.

This commit is contained in:
Brad Arant committed 2021-08-10 14:07:50 -07:00
1 parent 43489e5b3a
commit b16e2e1a1b
18 files changed
+43 -50

No files matched your search

+9 -7
View File
@@ -100,7 +100,9 @@ namespace core {
}
void Socket::receiveData(coreutils::ZString &buffer) {
coreutils::ZString empty("");
if(buffer.getLength() <= 0)
throw coreutils::Exception("Request to receive data with a zero buffer length.", __FILE__, __LINE__, -1);
@@ -117,12 +119,12 @@ namespace core {
switch (error) {
// When a listening socket receives a connection
// request we get one of these.
//
case ENOTCONN:
onDataReceived(std::string(buffer.getData(), 0));
break;
// When a listening socket receives a connection
// request we get one of these.
//
case ENOTCONN:
onDataReceived(empty);
break;
case ECONNRESET:
break;