Compiles.
This commit is contained in:
1 parent
43489e5b3a
commit
b16e2e1a1b
18 files changed
+43
-50
No files matched your search
+9
-7
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user