Commit graph

73 commits

Author SHA1 Message Date
Juhani Krekelä
8e7339e3f1 Implement a send queue 2019-07-15 20:02:04 +03:00
Juhani Krekelä
d406d269da Implement offline timeouts 2019-07-15 19:14:03 +03:00
Juhani Krekelä
7d4e304565 Handle DESTDIR correctly 2019-07-15 19:09:49 +03:00
Juhani Krekelä
415d6842f4 Don't leave debug changes in 2019-07-15 11:09:30 +03:00
Juhani Krekelä
d1a6bd7052 Close sys.stdin after we create the unbuffered version 2019-07-15 11:08:44 +03:00
Juhani Krekelä
78865bdc8e Document the other case where msgid might become invalid 2019-07-15 11:02:39 +03:00
Juhani Krekelä
8199a1cb58 Document the frontend-backend protocol 2019-07-15 01:47:55 +03:00
Juhani Krekelä
ed6fb6c624 Make backend die if asked to send a message while it's processing a previous one 2019-07-15 01:01:16 +03:00
Juhani Krekelä
ed79daeeb0 Fix issue where we might leak backend processes 2019-07-15 00:38:14 +03:00
Juhani Krekelä
579550468c Fix bug in check_utf8() where it would allow all C0 control codes other than LF 2019-07-15 00:30:53 +03:00
Juhani Krekelä
114d595ed2 Start tracking peers 2019-07-15 00:28:30 +03:00
Juhani Krekelä
97d42bce52 Create a concept of default target for messages 2019-07-14 23:34:40 +03:00
Juhani Krekelä
80b91d872d Add commands for changing status and nick 2019-07-14 23:25:10 +03:00
Juhani Krekelä
c2d021534f Create a command line interface 2019-07-14 23:13:39 +03:00
Juhani Krekelä
0443954c26 Get rid off debug features and dead code 2019-07-14 22:54:17 +03:00
Juhani Krekelä
205f323b87 Process message send failure states 2019-07-14 22:49:12 +03:00
Juhani Krekelä
e805ea1aef Process ACK 2019-07-14 20:39:45 +03:00
Juhani Krekelä
59cce635c7 Process message receive 2019-07-14 20:36:12 +03:00
Juhani Krekelä
c19d05c64e Change handling of msgid output from backend 2019-07-14 20:26:29 +03:00
Juhani Krekelä
a534cacd0e Move stuff off of top level 2019-07-14 20:12:45 +03:00
Juhani Krekelä
94c4e0fa0c Rewrite ethermess.py to not use multiple threads 2019-07-14 20:05:54 +03:00
Juhani Krekelä
eb2842efeb Process status messages 2019-07-13 20:51:15 +03:00
Juhani Krekelä
ac1fbb9bd0 Make quitting on frontend exiting foolproof 2019-07-13 19:55:26 +03:00
Juhani Krekelä
849c9d6fe0 Make a test script to do test builds with 2019-07-13 19:44:45 +03:00
Juhani Krekelä
4b63854c85 Broadcast status period 5min → 1min 2019-07-13 19:41:35 +03:00
Juhani Krekelä
fde0630217 fflush(3) ack info too 2019-07-13 19:39:11 +03:00
Juhani Krekelä
c7a773958d Route output from backend through frontend 2019-07-13 19:34:54 +03:00
Juhani Krekelä
e8e4257baa Get nick from arguments 2019-07-13 01:05:33 +03:00
Juhani Krekelä
38f847aac1 Rewrite ethermess.py to use multiple threads 2019-07-13 01:02:13 +03:00
Juhani Krekelä
ab454ca2ee Avoid crashing in the repl 2019-07-11 00:00:44 +03:00
Juhani Krekelä
206440659f Allow sending messages 2019-07-10 23:49:05 +03:00
Juhani Krekelä
d9d8c3657f Get rid of hardcoded MACs 2019-07-10 23:37:39 +03:00
Juhani Krekelä
96044e3482 Basic repl 2019-07-10 22:44:20 +03:00
Juhani Krekelä
664a6eb838 Start working on the frontend 2019-07-10 22:10:14 +03:00
Juhani Krekelä
05b4f87597 Whoops 2019-07-10 21:21:46 +03:00
Juhani Krekelä
55fc6932e2 Ensure correct utf-8 2019-07-10 21:20:24 +03:00
Juhani Krekelä
6cd84902fc Whoooops 2019-07-10 20:30:28 +03:00
Juhani Krekelä
cbc79587da Whoops 2019-07-10 20:26:47 +03:00
Juhani Krekelä
a624ce5374 Ensure arithmetic will never overflow 2019-07-10 20:25:26 +03:00
Juhani Krekelä
40048618ee Get rid of debug fprintfs on the network side of code 2019-07-10 16:28:22 +03:00
Juhani Krekelä
98f52fba51 Notify others about going offline 2019-07-10 16:24:27 +03:00
Juhani Krekelä
e7024d853b Fully implement sending 2019-07-10 16:22:02 +03:00
Juhani Krekelä
dab1565f31 Use microsecond resolution in timeouts 2019-07-10 15:12:11 +03:00
Juhani Krekelä
ab73580c23 Check msgid on receive and update caches 2019-07-10 14:00:44 +03:00
Juhani Krekelä
2d43d3273a Remove unnecessary errno = 0; 2019-07-10 13:38:40 +03:00
Juhani Krekelä
539dbf9f14 Add message sending and ack 2019-07-09 20:22:55 +03:00
Juhani Krekelä
3beda7742f Add randomness to the periodicity of broadcasts 2019-07-09 19:16:23 +03:00
Juhani Krekelä
87d0b33b3b Allow for status telling other end is going offline 2019-07-09 19:09:17 +03:00
Juhani Krekelä
f678c5054f Send our own status periodically 2019-07-09 17:18:00 +03:00
Juhani Krekelä
541dd28a64 Randomize message ID start 2019-07-09 16:35:48 +03:00