CVS log for emacs/plugins/zenicb.el

[BACK] Up to [local] / emacs / plugins

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 21 19:34:16 2022 UTC (2 years, 2 months ago) by namtsui
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +10 -10 lines
Diff to previous 1.11 (colored)

get rid of stray bytes

Revision 1.11 / (download) - annotate - [select for diffs], Mon May 23 00:31:51 2022 UTC (2 years, 6 months ago) by namtsui
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

from jca disable multibyte

get entire multibyte messages with non-ascii escaped

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 22 22:19:38 2022 UTC (2 years, 6 months ago) by namtsui
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

use get-byte instead of aref

use get-byte for both length and type for consistency, but it's not
really needed.

length is 222 = 1101 1110
aref string 0 interprets it as some huge number
get-byte interprets it as unsigned
'b' = 98 = 0110 0010 for type
length has leading 1 and type has leading 0

Revision 1.9 / (download) - annotate - [select for diffs], Sun May 22 06:51:50 2022 UTC (2 years, 6 months ago) by namtsui
Branch: MAIN
Changes since 1.8: +7 -6 lines
Diff to previous 1.8 (colored)

resync with t's version

Revision 1.8 / (download) - annotate - [select for diffs], Sun May 22 06:21:28 2022 UTC (2 years, 6 months ago) by namtsui
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

no longer disconnect when sending long messages and no longer silently disconnect when receiving packets that have multiple messages

zenicb would crash when sending long messages. first byte of packet should contain length according to ICB spec. second byte should then contain type of message ('b' for group message). wireshark revealed that sometimes first two bytes were some value followed by third byte for type of message. This meant that the garbage second byte was erroneously used for type of message, leading to an error unknown type of message. This can be traced to the usage of format. To resolve this, use unibyte-string instead of format.

This also revealed another problem in the "Handle data arriving from the ICB server" section. zenicb would silently disconnect when receiving messages. length turned out to be a garbage value when aref is used. Instead, use get-byte to ensure that first byte is read.

sources:
get-byte: https://lists.gnu.org/r/help-gnu-emacs/2010-03/msg00167.html
https://www.gnu.org/software/emacs/manual/html_node/elisp/Converting-Representations.html
unibyte-string: https://stackoverflow.com/questions/43987299/utf-8-bytes-to-string

Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 21 01:28:27 2020 UTC (4 years ago) by namtsui
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

revert

Revision 1.6 / (download) - annotate - [select for diffs], Sat Nov 21 01:19:15 2020 UTC (4 years ago) by namtsui
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

test commit

Revision 1.5 / (download) - annotate - [select for diffs], Fri Nov 20 01:20:36 2020 UTC (4 years ago) by namtsui
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Summary: my domain

Revision 1.4 / (download) - annotate - [select for diffs], Fri Nov 20 01:18:51 2020 UTC (4 years ago) by namtsui
Branch: MAIN
Changes since 1.3: +88 -7 lines
Diff to previous 1.3 (colored)

Summary: from theo and kettenis ; and : for repeating /m

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jun 11 09:02:37 2020 UTC (4 years, 5 months ago) by namtsui
Branch: MAIN
Changes since 1.2: +0 -2 lines
Diff to previous 1.2 (colored)

Summary: remove cvs header

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jun 11 08:59:06 2020 UTC (4 years, 5 months ago) by namtsui
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

Summary: string-to-number

string-to-integer is deprecated. replace with string-to-number.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 10 09:03:15 2020 UTC (4 years, 5 months ago) by namtsui
Branch: MAIN

Summary: zenicb

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb