Created
January 25, 2015 06:04
-
-
Save scionwest/2719ac13d5860811bb13 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
| internal class ClientCommunicator : IClientCommunicator | |
| { | |
| private NetworkStream networkStream; | |
| public ClientCommunicator(NetworkStream stream) | |
| { | |
| this.networkStream = stream; | |
| } | |
| public async Task Listen() | |
| { | |
| var buffer = new byte[1024]; | |
| await this.networkStream.ReadAsync(buffer, 0, 1024); | |
| await this.Listen(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment