mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-14 00:49:41 -05:00
RetroShare is a Free and Open Source cross-platform, Friend-2-Friend and secure decentralised communication platform.
bb10b6b400
The protocol message format is as follows: [HEADER: 16 bytes: 4 x Network Order uint32_t][ VARIABLE LENGTH BODY ] [ MAGIC_CODE ] [ MSG_ID ] [ REQ_ID ] [ BODY_SIZE ] [ ........ BODY ......... ] MagicCode = 0x137f0001 ... this will be incremented for new versions of the protocol. MsgID = Corresponds to the format of the Body. ReqID = Generated by Requester, Returned in Response, make sure its unique. (undefined behaviour for duplicates) BodySize = Byte Length of Body. The Body will consist of a protobuf encoded message. For the moment, the RPC server just ECHOs the request back to the sender - for testing purposes. Usage: * Create SSH connection to retroshare-nogui. * Create Request Message(s), and send over SSH channel - You can send as meny requests as you want. * They will processed, and responses sent back (potentially in an arbitary order). Specific Changes here: * Modified rssshd to support arbitary recv/send applications. (interface is RpcComms). * Added rpc directory, with server, setup and echo service. * Modified Menu System to use the new interface to rssshd * Wrote new matching interface for Terminal Usage. - NOTE: Strange BUG in Terminal version.... causes stderr to disappear. TODO. * Added -C commandline option to switch on RPC system. This is the first version - so I expect there will be bugs. Please report for a prompt fix! git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5444 b45a01b8-16f6-495d-af2f-9b41ad6348cc |
||
---|---|---|
build_scripts | ||
libbitdht/src | ||
libretroshare/src | ||
openpgpsdk/src | ||
plugins | ||
retroshare-gui/src | ||
retroshare-nogui/src | ||
build-all-mingw32make.bat | ||
README.txt | ||
RetroShare.pro |
To use this branch: chekcout the last version of openpgp SDK: # svn co svn://openpgp.nominet.org.uk/openpgpsdk/tags/openpgpsdk-0.9 openpgpsdk # cd openpgpsdk # ./configure --without-idea # make For the moment, the compilation is not workign on ubuntu Work to do ========== Put a 'x' when done. 1,2,3 means started/ongoing/almost finished. Compilation 00 [1] make sure the library compiles on linux 01 [ ] make sure the library compiles on windows Project 02 [1] determine what's missing in OpenPGP-SDK 03 [3] make a separate layer in RS to handle PGP. AuthPGP is too close to libretroshare. 04 [1] write the new AuthGPG class 05 [ ] consider removing thread behaviour of AuthGPG 06 [ ] remove callback system and services from AuthGPG, since it's not useful anymore 07 [ ] make all RS use GPGIdType isntead of std::string. Notes ===== Questions to answer: - do we rely on updates from openPGP-sdk ? Probably not. This code seems frozen. - do we need an abstract layer for PGP handling in RS ? - what new functionalities do we need in RS ? * pgp keyring sharing/import/export * identity import/export Code struture - replace current AuthGPG (virtual class) by a class named GPGHandler, that is responsible for signing, checking signatures, encrypting etc. - add a specific 8-bytes type for GPG Ids. Could be a uint64_t, or a uchar[8]