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

ConnectTimeout Property

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

Gets or sets the number of milliseconds to wait for response from the server when connecting.

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

Return Type

The number of milliseconds to wait for response from the server when connecting. The default value is 0.

Remarks

The Object.Connect method will block for the amount of time specified by Object.ConnectTimeout. If no response is received from the server in this amount of time, a System.Net.SocketException will be thrown. The default value is 0, indicating no timeout is used.

NOTE. There is no pragmatic control over which the system will wait for a response. The generally accepted maximum wait time for Windows platforms appears to be 25 seconds. If you set this property for a value less than 25 seconds, PowerTCP will throw a SocketException. If you set it for a value greater than 25 seconds, the system may throw an exception before your specified timeout is reached.

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.