CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2012

    specify timeput for connecting with TCPClient

    i want to connect to a listener with TCPClient.connect(ip,port) command.but before that i want to specify a timeout for it.
    as you know there is 2 command for send and recieve :SendTimeout and RecieveTimeout...but this command is usefull when a connection is created. i want a to specify Timeout for connecting.

  2. #2
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: specify timeput for connecting with TCPClient

    You can't tell a server like that. It is a server side command. I'd just use a TIMER

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.