From 061d2629a37104bd28fc5e0d59672b132b4bbaa9 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 17 May 2020 20:39:22 -0400 Subject: add some links to READMEs --- IRCStates/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'IRCStates') diff --git a/IRCStates/README.md b/IRCStates/README.md index 05daa8c..7b29d23 100644 --- a/IRCStates/README.md +++ b/IRCStates/README.md @@ -1,7 +1,9 @@ -# IrcStates +# IRCStates port of [jesopo/ircstates](https://github.com/jesopo/ircstates) +available on [nuget](https://www.nuget.org/packages/IRCStates) + bare bones irc client state see the full example in [StatesSample/Client.cs](../Examples/States/Client.cs) @@ -44,9 +46,8 @@ see the full example in [StatesSample/Client.cs](../Examples/States/Client.cs) { while (_encoder.PendingBytes.Any()) { - var bytesSent = _socket.Send(_encoder.PendingBytes); - var sentLines = _encoder.Pop(bytesSent); - foreach (var line in sentLines) Console.WriteLine($"> {line.Format()}"); + foreach (var line in _encoder.Pop(_socket.Send(_encoder.PendingBytes))) + Console.WriteLine($"> {line.Format()}"); } var bytesReceived = _socket.Receive(_bytes); -- cgit 1.4.1