Rename some stuff in Phy since it can be used with any stream socket.
This commit is contained in:
parent
cd3d77987c
commit
9dc2ef5549
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue