Skip to content

Instantly share code, notes, and snippets.

@scionwest
Created January 25, 2015 06:04
Show Gist options
  • Save scionwest/2719ac13d5860811bb13 to your computer and use it in GitHub Desktop.
Save scionwest/2719ac13d5860811bb13 to your computer and use it in GitHub Desktop.
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