Skip to content

Commit 93804fc

Browse files
committed
items header
1 parent 16611c5 commit 93804fc

File tree

2 files changed

+184
-144
lines changed

2 files changed

+184
-144
lines changed

src/core/EchoSocket.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ EchoSocket::EchoSocket() {
4848
kiwi::cout << "Received data from " << kiwi::ToString(mPeerAddr)
4949
<< "(" << *nrecv << " bytes)" << kiwi::endl;
5050

51-
mpSocket->SendBytesTo(mpDataBuffer, *nrecv, mPeerAddr);
51+
kiwi::IosObject<u8> acceptanceByte = 1;
52+
53+
mpSocket->SendTo(acceptanceByte.Ref(), mPeerAddr);
5254
}
5355
}
5456
}

0 commit comments

Comments
 (0)