Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | also only read 512 bytes when reading messages | Jesse Luehrs | 2014-09-10 | 1 | -8/+16 |
| | |||||
* | limit messages to 512 bytes | Jesse Luehrs | 2014-09-09 | 3 | -13/+29 |
| | | | | | still need to avoid actually reading in bytes past 512 in an incoming message | ||||
* | add callbacks for on_command and on_reply | Jesse Luehrs | 2014-09-09 | 1 | -0/+10 |
| | |||||
* | pass is_reply through to the message type | Jesse Luehrs | 2014-09-09 | 1 | -0/+4 |
| | |||||
* | the default PING implementation should reply with PONG | Jesse Luehrs | 2014-09-09 | 1 | -1/+7 |
| | |||||
* | more error handling | Jesse Luehrs | 2014-09-09 | 1 | -6/+26 |
| | |||||
* | handle errors a bit more properly here | Jesse Luehrs | 2014-09-09 | 1 | -2/+2 |
| | |||||
* | propagate a few more errors | Jesse Luehrs | 2014-09-09 | 2 | -75/+90 |
| | |||||
* | move callbacks out to their own trait | Jesse Luehrs | 2014-09-09 | 2 | -173/+195 |
| | | | | | this reduces the amount of things users have to worry about reimplementing, since we don't have associated items yet | ||||
* | fix a warning | Jesse Luehrs | 2014-09-09 | 1 | -1/+1 |
| | |||||
* | add callbacks for all messages | Jesse Luehrs | 2014-09-09 | 1 | -7/+692 |
| | | | | | i'm not sure that all of these callbacks (or parameters) are valid for clients, but they're all there for now for completeness | ||||
* | pass &Message around, since Message isn't copyable | Jesse Luehrs | 2014-09-08 | 1 | -3/+3 |
| | |||||
* | start moving things into callbacks | Jesse Luehrs | 2014-09-08 | 1 | -47/+56 |
| | |||||
* | also provide a method to get a String out | Jesse Luehrs | 2014-09-08 | 1 | -0/+9 |
| | | | | not using this as the default ToStr because it's less easy to read | ||||
* | move the client implementation to a trait | Jesse Luehrs | 2014-09-08 | 1 | -33/+22 |
| | | | | this will allow us to more easily allow adding hooks | ||||
* | pass in the client to callbacks | Jesse Luehrs | 2014-09-06 | 1 | -2/+3 |
| | | | | | this requires run_loop_with to consume the client, since we need to be able to pass it in mutably. i think that is probably okay. | ||||
* | add a basic runloop | Jesse Luehrs | 2014-09-06 | 1 | -0/+12 |
| | |||||
* | better default for hostname | Jesse Luehrs | 2014-09-06 | 1 | -8/+29 |
| | |||||
* | connect should consume the clientbuilder | Jesse Luehrs | 2014-09-04 | 1 | -21/+20 |
| | | | | this way we can handle callbacks, which may not be cloneable or whatever | ||||
* | no need to separate commands and replies as types | Jesse Luehrs | 2014-09-04 | 3 | -121/+85 |
| | | | | it just clutters things | ||||
* | no reason for these extra & here | Jesse Luehrs | 2014-09-04 | 2 | -9/+9 |
| | |||||
* | send the pass too if set | Jesse Luehrs | 2014-09-04 | 1 | -1/+15 |
| | |||||
* | allow setting the user's hostname too | Jesse Luehrs | 2014-09-04 | 1 | -6/+23 |
| | | | | | eventually we should default this to something more sensible than "localhost" | ||||
* | this should use the host we're connecting to | Jesse Luehrs | 2014-09-04 | 1 | -1/+1 |
| | |||||
* | move connection initialization into the client | Jesse Luehrs | 2014-09-04 | 2 | -25/+71 |
| | |||||
* | make a few more things public | Jesse Luehrs | 2014-09-03 | 2 | -3/+4 |
| | |||||
* | add support for writing irc messages | Jesse Luehrs | 2014-09-03 | 2 | -1/+38 |
| | |||||
* | more useful Show implementations | Jesse Luehrs | 2014-09-03 | 1 | -2/+61 |
| | |||||
* | set offset properly | Jesse Luehrs | 2014-09-03 | 1 | -1/+1 |
| | |||||
* | expose the client on the top level module | Jesse Luehrs | 2014-09-03 | 1 | -0/+3 |
| | |||||
* | start working on an irc client class | Jesse Luehrs | 2014-09-03 | 1 | -0/+42 |
| | |||||
* | let's put message handling in its own module | Jesse Luehrs | 2014-09-03 | 2 | -1/+1 |
| | |||||
* | test for replies | Jesse Luehrs | 2014-09-03 | 1 | -0/+17 |
| | |||||
* | it's simpler if these are just constants | Jesse Luehrs | 2014-09-03 | 1 | -175/+168 |
| | | | | it's not like we'll ever care about exhaustive matching here | ||||
* | we don't care if the constants are unused for now | Jesse Luehrs | 2014-09-03 | 1 | -0/+2 |
| | |||||
* | fix :-prefixed params | Jesse Luehrs | 2014-09-03 | 1 | -4/+48 |
| | |||||
* | start working on message parsing | Jesse Luehrs | 2014-09-03 | 3 | -3/+411 |
| | |||||
* | initial commit | Jesse Luehrs | 2014-09-02 | 1 | -0/+3 |