diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-10 15:55:48 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-10 15:55:48 -0700 |
commit | 9dc2ef554997f5598c9cf2c4d3ca041c3152a962 (patch) | |
tree | fdbecbda24778b7e63ff344986cda6fb47738b46 /selftest.cpp | |
parent | cd3d77987ccaa77df803332a2ab0ff4805fabf70 (diff) | |
download | infinitytier-9dc2ef554997f5598c9cf2c4d3ca041c3152a962.tar.gz infinitytier-9dc2ef554997f5598c9cf2c4d3ca041c3152a962.zip |
Rename some stuff in Phy since it can be used with any stream socket.
Diffstat (limited to 'selftest.cpp')
-rw-r--r-- | selftest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/selftest.cpp b/selftest.cpp index a664ca8e..b899ee5a 100644 --- a/selftest.cpp +++ b/selftest.cpp @@ -795,7 +795,7 @@ struct TestPhyHandlers { ++phyTestTcpAcceptCount; *uptrN = new std::string(ZT_TEST_PHY_TCP_MESSAGE_SIZE,(char)0xff); - testPhyInstance->tcpSetNotifyWritable(sockN,true); + testPhyInstance->setNotifyWritable(sockN,true); } inline void phyOnTcpClose(PhySocket *sock,void **uptr) @@ -812,7 +812,7 @@ struct TestPhyHandlers { std::string *testMessage = (std::string *)*uptr; if ((testMessage)&&(testMessage->length() > 0)) { - long sent = testPhyInstance->tcpSend(sock,(const void *)testMessage->data(),(unsigned long)testMessage->length(),true); + long sent = testPhyInstance->streamSend(sock,(const void *)testMessage->data(),(unsigned long)testMessage->length(),true); if (sent > 0) testMessage->erase(0,sent); } |