Top "Networkstream" questions

A .NET class that provides the underlying stream of data for network access.

How to check if TcpClient Connection is closed?

I'm playing around with the TcpClient and I'm trying to figure out how to make the Connected property say false …

c# sockets tcpclient networkstream
How to get all data from NetworkStream

I am trying to read all data present in the buffer of the Machine connected through TCP/IP but i …

c# tcp tcpclient tcp-ip networkstream
Operation not allowed on non-connected Sockets - C# 4.0

It keeps having an error "Operation not allowed on non-connected sockets" on the line var ServerStream = Connect2Server.GetStream(); And …

c# .net-4.0 tcp networkstream
What is the correct way to close a TCP connection

I have a TcpClient object which sends some data to server, using its underlying NetworkStream.Write(). Therefor, I have: TcpClient …

c# tcp networkstream
Get Data from Bluetooth device in C#

I'm trying to get data from a medical BT device that I already have pairing code and communication protocol. Looking …

c# bluetooth networkstream 32feet
Writing/reading string through NetworkStream (sockets) for a chat

Sorry if this is hard to understand, trying out C# for the first time. I am trying to make a …

c# string sockets chat networkstream
TcpClient.GetStream().DataAvailable returns false, but stream has more data

So, it would seem that a blocking Read() can return before it is done receiving all of the data being …

c# tcpclient networkstream
Get Length of Data Available in NetworkStream

I would like to be able to get the length of the data available from a TCP network stream in …

c# .net sockets tcp networkstream
Calling BeginRead from a NetworkStream

Ok I want to connect to a Socket and read a network stream using the System.Net.Sockets.NetworkStream class. …

c# network-programming networkstream
TPL TaskFactory.FromAsync vs Tasks with blocking methods

I was wondering if there were any performance implications between using TPL TaskFactory.FromAsync and using TaskFactory.StartNew on blocking …

c#-4.0 task task-parallel-library networkstream taskfactory