close
This commit is contained in:
@@ -16,7 +16,7 @@ public:
|
|||||||
int pingCnt() const { return ping_cnt; }
|
int pingCnt() const { return ping_cnt; }
|
||||||
|
|
||||||
void ping() {
|
void ping() {
|
||||||
const auto data = PIByteArray(WriteSize);
|
const auto data = PIByteArray(WriteSize);
|
||||||
writeInternal(data);
|
writeInternal(data);
|
||||||
ping_cnt++;
|
ping_cnt++;
|
||||||
}
|
}
|
||||||
@@ -43,6 +43,9 @@ class TestServerClient
|
|||||||
, public TestClientBase<WriteSize, WithPong> {
|
, public TestClientBase<WriteSize, WithPong> {
|
||||||
using Base = TestClientBase<WriteSize, WithPong>;
|
using Base = TestClientBase<WriteSize, WithPong>;
|
||||||
|
|
||||||
|
public:
|
||||||
|
~TestServerClient() { close(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void readed(PIByteArray data) override { Base::readInternal(data); }
|
void readed(PIByteArray data) override { Base::readInternal(data); }
|
||||||
|
|
||||||
@@ -62,6 +65,9 @@ class TestClient
|
|||||||
, public TestClientBase<WriteSize, WithPong> {
|
, public TestClientBase<WriteSize, WithPong> {
|
||||||
using Base = TestClientBase<WriteSize, WithPong>;
|
using Base = TestClientBase<WriteSize, WithPong>;
|
||||||
|
|
||||||
|
public:
|
||||||
|
~TestClient() { close(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void readed(PIByteArray data) override { Base::readInternal(data); }
|
void readed(PIByteArray data) override { Base::readInternal(data); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user