See Also

Tcp Class  | Tcp Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerTCP SSL Sockets for .NET

SendTimeout Property

Dart.PowerTCP.SslSockets Namespace > Tcp Class : SendTimeout Property

Gets and sets the number of milliseconds that a Send method will block before throwing a SocketException.

[Visual Basic]
<CategoryAttribute("Socket Options")> <DefaultValueAttribute()> <DescriptionAttribute("Gets and Sets the number of milli-seconds that a socket Send() method will block before throwing a SocketException.")> Public Property SendTimeout As Integer
[C#]
[CategoryAttribute("Socket Options")] [DefaultValueAttribute()] [DescriptionAttribute("Gets and Sets the number of milli-seconds that a socket Send() method will block before throwing a SocketException.")] public int SendTimeout {get; set;}
[C++]
[CategoryAttribute("Socket Options")] [DefaultValueAttribute()] [DescriptionAttribute("Gets and Sets the number of milli-seconds that a socket Send() method will block before throwing a SocketException.")] public: __property int get_SendTimeout(); public: __property void set_SendTimeout(    int value );
[C++/CLI]
[CategoryAttribute("Socket Options")] [DefaultValueAttribute()] [DescriptionAttribute("Gets and Sets the number of milli-seconds that a socket Send() method will block before throwing a SocketException.")] public: property int SendTimeout {    int get();    void set (int value); }

Return Type

The timeout (in milli-seconds) for completing a blocking Tcp.Send or SegmentedStream.Write. The default is 0, which indicates no timeout.

Remarks

The Tcp component will block (not execute further code on the main thread) until either the data is sent or until the method blocks for the time specified in Tcp.SendTimeout, at which point a SocketException is thrown. The default is 0, which indicates no timeout. Setting this property has no effect on asynchronous methods such as BeginSend.

This property is useful for determining network failure while sending data. It is also useful for cases where sending data has to occur quickly or not at all, such as in an ASP script or when connecting and sending data to a series of sockets in a batch process.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Tcp Class  | Tcp Members


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.