Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: How to change time in timeOutException
33qq24q

From: India
Posts: 10
Member Since: 07/02/14
posted July 5, 2014 1:43 AM

how to change time in timeOutException on socket connection?

my code is like this:

    private void connect(object state)
    {
      try
      {
        tcp1.Connect(new TcpSession(new Dart.Sockets.IPEndPoint("127.0.0.1", 7)));
      }
      catch (TimeoutException ex)
      {
        tcp1.Marshal(ex);
      }
      catch (Exception ex)
      {
        tcp1.Marshal(ex);
      }
    }
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 7, 2014 9:30 AM

Hello,

Tcp.SocketOption.ReceiveTimeout and SendTimeout may be used to specify read/write timeout values. If you are asking about a timeout for the Connect method, TcpSession.ConnectTimeout was added in the latest release of Sockets, version 4.5.0.1.
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX