Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

TCP client reciving

$
0
0

Hi all

I'm working on application that will communicate with hardware wifi module. As communication interface I'm using TCP -module create server and my application connect to server. For my use i am using Visual c++ (2008 express edition) and I tuned up this example code for my purpose:

 http://msdn.microsoft.com/en-us/library/vstudio/system.net.sockets.tcpclient(v=vs.100).aspx 

Now to the problem, I can connect to server communicate, but server is sometimes sending something 'unexpected', and I'm losing this data. Is it possible to use socket to read data from server asynchronously  or when they are received ? 


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>