-
-
Save terrajobst/ee86ab15d1d7a1d5869d1c1f2443f3b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async Task ProcessLinesAsync(NetworkStream stream) | |
{ | |
var buffer = new byte[1024]; | |
await stream.ReadAsync(buffer, 0, buffer.Length); | |
// Process a single line from the buffer | |
ProcessLine(buffer); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment