diff options
Diffstat (limited to 'IRCStates')
-rw-r--r-- | IRCStates/README.md | 9 |
1 files changed, 5 insertions, 4 deletions
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); |