librats 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/native-src/CMakeLists.txt +10 -2
- package/native-src/src/bt_network.cpp +296 -183
- package/native-src/src/bt_network.h +25 -5
- package/native-src/src/io_poller.cpp +910 -0
- package/native-src/src/io_poller.h +138 -0
- package/native-src/src/librats.cpp +809 -1236
- package/native-src/src/librats.h +146 -54
- package/native-src/src/librats_bittorrent.cpp +1 -5
- package/native-src/src/librats_c.cpp +1 -1
- package/native-src/src/librats_discovery.cpp +309 -0
- package/native-src/src/librats_encryption.cpp +130 -283
- package/native-src/src/librats_file_transfer.cpp +2 -6
- package/native-src/src/librats_gossipsub.cpp +1 -5
- package/native-src/src/librats_ice.cpp +1 -1
- package/native-src/src/librats_log_macros.h +36 -0
- package/native-src/src/librats_logging.cpp +1 -7
- package/native-src/src/librats_mdns.cpp +1 -11
- package/native-src/src/librats_persistence.cpp +1 -11
- package/native-src/src/librats_reconnection.cpp +2 -13
- package/native-src/src/librats_statistic.cpp +97 -0
- package/package.json +1 -1
|
@@ -129,6 +129,7 @@ set(LIBRARY_SOURCES
|
|
|
129
129
|
src/krpc.cpp
|
|
130
130
|
src/krpc.h
|
|
131
131
|
src/librats.cpp
|
|
132
|
+
src/librats_discovery.cpp
|
|
132
133
|
src/librats_reconnection.cpp
|
|
133
134
|
src/librats_logging.cpp
|
|
134
135
|
src/librats_encryption.cpp
|
|
@@ -136,6 +137,7 @@ set(LIBRARY_SOURCES
|
|
|
136
137
|
src/librats_gossipsub.cpp
|
|
137
138
|
src/librats_mdns.cpp
|
|
138
139
|
src/librats_persistence.cpp
|
|
140
|
+
src/librats_statistic.cpp
|
|
139
141
|
src/librats.h
|
|
140
142
|
src/sha1.cpp
|
|
141
143
|
src/sha1.h
|
|
@@ -157,13 +159,17 @@ set(LIBRARY_SOURCES
|
|
|
157
159
|
src/rats_export.h
|
|
158
160
|
${PROJECT_BINARY_DIR}/src/version.h
|
|
159
161
|
|
|
160
|
-
# Buffer utilities for
|
|
162
|
+
# Buffer utilities for async I/O, file transfer, and bittorrent
|
|
161
163
|
src/receive_buffer.h
|
|
162
164
|
src/receive_buffer.cpp
|
|
163
165
|
src/chained_send_buffer.h
|
|
164
166
|
src/chained_send_buffer.cpp
|
|
165
167
|
|
|
166
|
-
#
|
|
168
|
+
# Platform-optimal I/O multiplexing (epoll/kqueue/IOCP)
|
|
169
|
+
src/io_poller.h
|
|
170
|
+
src/io_poller.cpp
|
|
171
|
+
|
|
172
|
+
# Crypto algorithms including Noise Protocol
|
|
167
173
|
src/crypto/curve25519.c
|
|
168
174
|
src/crypto/curve25519.h
|
|
169
175
|
src/crypto/chacha.c
|
|
@@ -430,6 +436,8 @@ if(RATS_BUILD_TESTS)
|
|
|
430
436
|
tests/test_stun.cpp
|
|
431
437
|
tests/test_turn.cpp
|
|
432
438
|
tests/test_ice.cpp
|
|
439
|
+
# I/O poller abstraction (epoll/kqueue/IOCP)
|
|
440
|
+
tests/test_io_poller.cpp
|
|
433
441
|
# Buffer utilities for file transfer and bittorrent
|
|
434
442
|
tests/test_receive_buffer.cpp
|
|
435
443
|
tests/test_chained_send_buffer.cpp
|