# C# Async Socket

**URL:** <https://forum.kirupa.com/t/c-async-socket/310094>\
**Category:** programming\
**Created:** [June 1, 2010, 1:18pm UTC](https://forum.kirupa.com/t/c-async-socket/310094 "2010-06-01T13:18:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)\
**Post date:** [June 1, 2010, 1:18pm UTC](https://forum.kirupa.com/t/c-async-socket/310094/1 "2010-06-01T13:18:05Z")

</div>

Hi all,

Here is the thing, I’m writing a C# app that allows you to view the state of a little network. I have a master server to which any client can connect to and send data about itself. The master server collects all that data and sends it to the app I’m writing.

I need my app to just sit and wait for some incoming data from the server so it can update the display. But my problem is that, while doing that I can’t seem to get non blocking Sockets working. I can’t have my app “freeze” as it waits for the data.  
I’ve read through the msdn docs and tested a few things, can’t seem to get anything to work. Is there an “AS3” way of doing it ? With events for instance…

I’m a little lost as to what I should use: Socket, TCPCLient, NetworkStream…

thanks 🙂
