See Also

Tcp Class  | Tcp Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerTCP Email Validation for .NET

ConnectTimeout Property

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

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

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

See Also

Tcp Class  | Tcp Members


Send comments on this topic.

Documentation version 1.0.3.0.

© 2008 Dart Communications.  All rights reserved.