Commit graph

51 commits

Author SHA1 Message Date
a4ca2865c4 explicitly state the addess family type when checking them 2025-01-07 10:24:05 +01:00
88f1c4cba4 fixed an issue where if the machine had an IPv4 interface, it could sometime crash while checking if an address is local 2025-01-07 10:17:16 +01:00
cef9cea12c added an argument to specify the network interface to use for communication 2025-01-06 23:55:34 +01:00
f28454c2b2 added trusted / untrusted peers mechanism 2025-01-05 12:46:21 +01:00
84f76c0892 improve secret key storage to better resist to switching server by storing it in the role 2025-01-05 10:43:35 +01:00
1250318de6 simplified machine role behavior 2025-01-05 10:06:21 +01:00
1301b10259 (untested) slave shall now ask for the server secret key for symmetric communications 2025-01-04 18:28:13 +01:00
a9fe745fd7 added todos 2025-01-04 14:07:49 +01:00
c225a3e27c fixed most of the audio stuttering 2025-01-04 14:03:43 +01:00
077d1d3d9d master now emit audio in the network and others machines play it at the given time. 2025-01-04 13:30:27 +01:00
142d0f6db8 added a basic behavior to switch to master mode if we are the only machine in the network 2025-01-04 00:56:59 +01:00
8038b8e40c fully added encryption support 2025-01-04 00:34:00 +01:00
2286375bae splitted the manager into an event and role manager 2025-01-03 22:51:08 +01:00
c825ef8bef recreated a base for a python simplified version 2025-01-03 21:57:08 +01:00
dfb96a7853 separated managers functions and improved error messages 2025-01-03 11:21:27 +01:00
e8a6a0a400 use docker for testing 2025-01-02 21:48:27 +01:00
b446b6025d made externals modules use git external to avoid potential issues on installation 2025-01-02 21:48:08 +01:00
a7c1bba666 reorganised some parts of the code
Utils moved to subdirectories
Task activation have been moved to static member of the Task class, instead of being manually activated.
2024-11-26 21:57:37 +01:00
61a57a7529 added backend for AES / RSA encryption, implemented variable size packets. 2024-11-26 09:29:56 +01:00
523c86237c peer now calculate an asymetric private and public key, for future encrypted communication. 2024-11-17 22:34:52 +01:00
7871a4f4dd simplified some constructor syntax, made the "id" value of a peer not required for the program to work correctly (id will be removed later) 2024-11-17 14:21:49 +01:00
11e4861082 improved latency before playing an audio
prevented playing packets that are too old to avoid offset
2024-11-14 13:24:49 +01:00
9646c2d09b improved messages and structure of the program 2024-11-11 14:09:54 +01:00
3c044249f4 improved messages and structure of the program 2024-11-11 13:39:13 +01:00
454e86a982 fixed small overflow in the serialization 2024-11-11 13:22:16 +01:00
cd239e1eea improved packet serialization and readability 2024-11-11 13:20:23 +01:00
349e807649 fixed IPv6 mode not receiving loopback messages 2024-11-11 10:02:50 +01:00
05142cbb1f fixed IPv6 mode not being able to receive response 2024-11-10 19:26:21 +01:00
5567ad0df0 added argparse 2024-11-10 15:05:32 +01:00
ec72e8888b improved program startup stability 2024-11-10 14:45:27 +01:00
0745b725a7 use broadcast address 2024-11-10 13:09:58 +01:00
3d38302e2f fixed audio not being received properly. 2024-11-09 14:19:26 +01:00
724cad320f added an id system to the peers 2024-11-08 16:29:11 +01:00
bea5704282 improved StatList behavior 2024-11-08 00:14:39 +01:00
1c5442c267 moved sleep into the tasks instead of the event loop 2024-11-06 23:53:25 +01:00
4f84c8186a added timestamp to broadcast search message 2024-11-06 15:52:56 +01:00
aa24bb3509 continued developping the undefined task behavior 2024-11-06 00:08:29 +01:00
93f8701ac5 fixed missing include, added context to tasks. 2024-11-05 14:58:31 +01:00
218ee71118 reorganised the way the program share data (Context, Peer, RemotePeer) 2024-11-04 23:40:40 +01:00
23732795d0 restructured the program 2024-11-04 00:01:48 +01:00
824a48f8d2 fixed the sampleFormat size used in the frames calculation 2024-10-22 20:21:29 +02:00
c3c452ff5d audio settings can now change dynamically 2024-10-22 20:14:45 +02:00
21f14948b9 improved error message 2024-10-22 12:10:45 +02:00
33033b0c96 added a small fix : if a new audio shall be played now, immediately stop the previous audio and play the new one instead 2024-10-22 12:04:05 +02:00
73be1f9a80 cleaned some messages and improved the documentation 2024-10-22 12:03:24 +02:00
b8edda302d splitted the client player and receiver into two distinct threads 2024-10-21 22:05:19 +02:00
ced6dea00e implemented schedule and queue system to make the audio play at a specific time 2024-10-21 20:56:00 +02:00
6d0d375707 added a gitignore 2024-10-13 23:08:54 +02:00
145d4b8c2c splitted the program into a server and a client, communicating through sockets. 2024-10-13 23:07:08 +02:00
270017b1d3 example of playing audio in chunk 2024-10-13 16:58:43 +02:00