"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/testpacketio.cpp" between
muscle8.20.zip and muscle8.30.zip

About: MUSCLE (Multi User Server Client Linking Environment) is a messaging server and networking API. The included server program ("muscled") lets its clients message each other, and/or store information in its serverside hierarchical database.

testpacketio.cpp  (muscle8.20):testpacketio.cpp  (muscle8.30)
skipping to change at line 65 skipping to change at line 65
} }
ByteBuffer buf; ByteBuffer buf;
if (buf.SetNumBytes(mtu, false).IsError()) if (buf.SetNumBytes(mtu, false).IsError())
{ {
MWARN_OUT_OF_MEMORY; MWARN_OUT_OF_MEMORY;
return 10; return 10;
} }
TCPSocketDataIO tcp(s, true); TCPSocketDataIO tcp(s, true);
PacketizedProxyDataIO pack(DataIORef(&tcp, false), mtu); PacketizedProxyDataIO pack(DummyDataIORef(tcp), mtu);
if (connectTo == invalidIP) if (connectTo == invalidIP)
{ {
LogTime(MUSCLE_LOG_INFO, "Receiving packetized data...\n"); LogTime(MUSCLE_LOG_INFO, "Receiving packetized data...\n");
while(1) while(1)
{ {
const int32 numBytesRead = pack.Read(buf.GetBuffer(), buf.GetNumBytes() ); const int32 numBytesRead = pack.Read(buf.GetBuffer(), buf.GetNumBytes() );
if (numBytesRead < 0) if (numBytesRead < 0)
{ {
LogTime(MUSCLE_LOG_ERROR, "Connection closed!\n"); LogTime(MUSCLE_LOG_ERROR, "Connection closed!\n");
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)