-
- Downloads
ConnectionManager: first version
This patch introduces the first version for the first layer of group chat, the ConnectionManager. This class provides an API to get a channel socket between two devices. Behind that API, channel sockets are working on top of a MultiplexedSocket, working on top of a TLS Socket. So, if an user want a socket, they just have to call connectDevice. The manager will contact the other device through the DHT, negotiate (via the ICE protocol) a socket, start a TLS session and then open a new channel. Channel 0 is used as a control channel (to get channel requests and answer). Other channels are for the user. When a TLS packet is sent, the format is usually: | 16 bits = len of the content | 16 bits = channel | content... | Scenarios are described in the unitTest linked to that patch. Finally, each Jami accounts has its own ConnectionManager. Change-Id: I9cdd681e91ca71f24338e728fc382349393c6912
Showing
- src/dring/def.h 6 additions, 0 deletionssrc/dring/def.h
- src/ice_transport.cpp 41 additions, 1 deletionsrc/ice_transport.cpp
- src/ice_transport.h 15 additions, 0 deletionssrc/ice_transport.h
- src/jamidht/CMakeLists.txt 4 additions, 0 deletionssrc/jamidht/CMakeLists.txt
- src/jamidht/Makefile.am 4 additions, 0 deletionssrc/jamidht/Makefile.am
- src/jamidht/connectionmanager.cpp 750 additions, 0 deletionssrc/jamidht/connectionmanager.cpp
- src/jamidht/connectionmanager.h 125 additions, 0 deletionssrc/jamidht/connectionmanager.h
- src/jamidht/jamiaccount.cpp 19 additions, 0 deletionssrc/jamidht/jamiaccount.cpp
- src/jamidht/jamiaccount.h 12 additions, 0 deletionssrc/jamidht/jamiaccount.h
- src/jamidht/multiplexed_socket.cpp 614 additions, 0 deletionssrc/jamidht/multiplexed_socket.cpp
- src/jamidht/multiplexed_socket.h 167 additions, 0 deletionssrc/jamidht/multiplexed_socket.h
- src/jamidht/p2p.cpp 5 additions, 32 deletionssrc/jamidht/p2p.cpp
- src/manager.h 4 additions, 2 deletionssrc/manager.h
- src/peer_connection.cpp 56 additions, 6 deletionssrc/peer_connection.cpp
- src/peer_connection.h 7 additions, 0 deletionssrc/peer_connection.h
- test/unitTest/Makefile.am 9 additions, 1 deletiontest/unitTest/Makefile.am
- test/unitTest/connectionManager/connectionManager.cpp 678 additions, 0 deletionstest/unitTest/connectionManager/connectionManager.cpp
Loading
Please register or sign in to comment