Created
January 25, 2015 06:23
-
-
Save scionwest/da9d0b6d23ca14f2e471 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| public void Listen() | |
| { | |
| // BARF O_0 | |
| Task.Run(() => | |
| { | |
| this.isListening = true; | |
| while (this.isListening) | |
| { | |
| var buffer = new byte[1024]; | |
| this.networkStream.ReadAsync(buffer, 0, 1024); | |
| } | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment