Commit graph

26 commits

Author SHA1 Message Date
jesopo
b9a543031a simplify reading lines, simplify wait_for, wait_for from outside reads 2020-06-13 00:21:39 +01:00
jesopo
5b04a5d1fd allow Formatless and Folded to be nested 2020-06-01 14:17:19 +01:00
jesopo
51cfd0f36b rewrite how wait_for works - only one at a time now 2020-04-29 12:13:06 +01:00
jesopo
0921cb8086 allow ResponseOr to be shorthanded as a Set[IMatchResponse] 2020-04-27 01:28:46 +01:00
jesopo
ba57d06a56 implement client-to-server read timeout PINGs 2020-04-26 15:07:05 +01:00
jesopo
15b97ab3da implement draft/resume-0.5 2020-04-25 19:30:36 +01:00
jesopo
d51fcf0987 update ircstates, now only one (maybe Optional) Emit 2020-04-22 18:05:23 +01:00
jesopo
a79958affd add wait_for() hostmask matching functionality 2020-04-20 16:53:14 +01:00
jesopo
079460dd35 IBot isn't defined yet 2020-04-20 16:52:45 +01:00
jesopo
4831ec88fb make IServer.sts_policy() async in case e.g. saving needs await 2020-04-20 16:24:26 +01:00
jesopo
8340419b99 add IServer.bot:IBot 2020-04-20 16:22:39 +01:00
jesopo
ae01201d39 support requested disconnects, support STS connection transmutations 2020-04-19 23:04:56 +01:00
jesopo
8656f63d09 support labeled-response (but don't REQ it yet) 2020-04-13 18:23:05 +01:00
jesopo
179a2ca93a refactor TCP logic in to ITCPTransport (we can mock this for unittests) 2020-04-06 13:22:17 +01:00
jesopo
730fef38f3 server.send() should be sync and return a Future - no nead for double await 2020-04-05 23:54:57 +01:00
jesopo
0829fd9499 refactor and simplify normal reading vs wait_for 2020-04-05 17:11:04 +01:00
jesopo
e470d57780 pass IServer to Response so we can have FoldString (match with casefold rules) 2020-04-05 13:00:13 +01:00
jesopo
f70932ac44 move more CAP related stuff to CAPContext 2020-04-05 12:48:29 +01:00
jesopo
688418df04 dont tg.spawn() for each message, allow wait_for to read 2020-04-03 13:04:02 +01:00
jesopo
2d93e27feb maybe_sasl() -> sasl_auth(SASLParms) 2020-04-03 09:49:46 +01:00
jesopo
b34e4fcc22 await server.send() should block until it hits the wire 2020-04-02 23:53:32 +01:00
jesopo
06a4d20fc8 make handshake CAP dance happen in one async task. move to ircv3.py 2020-04-02 20:16:07 +01:00
jesopo
03c71f6498 remove unneeded imports (thanks importchecker!) 2020-04-02 18:00:28 +01:00
jesopo
b46cecf420 move ConnectionParams (and SASLParams) out to params.py 2020-04-02 17:55:15 +01:00
jesopo
4f61b89012 add objects needed to denote SASL in ConnectionParams 2020-04-02 16:59:02 +01:00
jesopo
be31fe1936 make a Server interface, interface.IServer 2020-04-01 23:25:44 +01:00