mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 23:55:35 -04:00
Major changes to the networking core of retroshare to introduce the new serialiser.
- Added new serialiser (PQItem -> RsItem), removed old one. - switched packet sorting from ChanId (array of ids) to PeerId (string) - introduced cleaner service interface (pqiservice). - moved p3disc to service interface. - modified streamers to use the new serialiser. - moved msg/chat to service interface. - removed old source code. (supernode / p3loopback). I've disabled UDP connections / Proxy and Channels for the moment. The code it still here, but is not compiled. The Proxy and Channels will become services, and the UDP connections will be reworked in the near future. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@274 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
07d33009b9
commit
2c9c31eaf0
36 changed files with 866 additions and 8116 deletions
|
@ -40,6 +40,7 @@
|
|||
|
||||
//socket blocking/options.
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#else
|
||||
|
||||
|
@ -135,6 +136,13 @@ int unix_getsockopt_error(int sockfd, int *err);
|
|||
int WinToUnixError(int error);
|
||||
#endif
|
||||
|
||||
/***** From http://www.codeproject.com/KB/cpp/endianness.aspx
|
||||
|
||||
#define ntohll(x) (((int64_t)(ntohl((int32_t)((x << 32) >> 32))) << 32) |
|
||||
(uint32_t) ntohl(((int32_t)(x >> 32))))
|
||||
#define htonll(x) ntohll(x)
|
||||
|
||||
*****/
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue