System.Net.Sockets.TcpClient.ReceiveTimeout Property

Gets or sets the amount of time a System.Net.Sockets.TcpClient will wait to receive data once a read operation is initiated.

Syntax

public int ReceiveTimeout { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The TcpClient.ReceiveTimeout property determines the amount of time that the NetworkStream.Read(Byte[], int, int) method will block until it is able to receive data. This time is measured in milliseconds. If the time-out expires before NetworkStream.Read(Byte[], int, int) successfully completes, System.Net.Sockets.TcpClient throws a System.IO.IOException. There is no time-out by default.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0