mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-01 12:24:36 -04:00
Major improvements to the serialiser to make it work with retroshare.
This is still a first draft - the message types will surely change. -corrected ids and added service classes. -Added disc/msg/chat/cache/file messages -Extended serialiser to handle service extensions. -corrected IpAddrPort code. -More debugging code. -Added some tests. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@270 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9f76b1a313
commit
e8ccb0b427
22 changed files with 3101 additions and 333 deletions
|
@ -60,7 +60,7 @@ int test_RsFileItem()
|
|||
/* make a serialisable FileItem */
|
||||
|
||||
RsSerialiser srl;
|
||||
RsFileItem rsfi;
|
||||
RsFileRequest rsfi;
|
||||
|
||||
/* initialise */
|
||||
rsfi.file.filesize = 101010;
|
||||
|
@ -104,7 +104,7 @@ int test_RsFileItem()
|
|||
CHECK(output != NULL);
|
||||
CHECK(sersize2 == sersize);
|
||||
|
||||
RsFileItem *outfi = dynamic_cast<RsFileItem *>(output);
|
||||
RsFileRequest *outfi = dynamic_cast<RsFileRequest *>(output);
|
||||
|
||||
CHECK(outfi != NULL);
|
||||
|
||||
|
@ -127,7 +127,7 @@ int test_RsFileItem()
|
|||
displayRawPacket(std::cerr, (void *) buffer, 16 * 8 + sersize2);
|
||||
|
||||
|
||||
REPORT("Serialise/Deserialise RsFileItem");
|
||||
REPORT("Serialise/Deserialise RsFileRequest");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue