borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Packet Routing)Next Topic (Login to Remote computer on UNIX from windows PC) New Topic New Poll Post Reply
AndreaVB Forum : Network : winsock time out
Poster Message
pyooi
Level: Guest


icon winsock time out


Hello, Im facing a problem with winsock control 3.0.

The problem is when i waiting the responce from my server,
maybe because it is slow, then it prompt a message something like "time out".

How can i extend longer, so that i won't get the error.

It is urgent...

Thank you very much
pyooi

03-04-2003 at 03:12 AM
| Quote Reply
win_dir
Level: VB Guru

Registered: 04-08-2002
Posts: 390
icon Re: winsock time out

If you have not yet found an answer, have you checked that you are connecting to the right port and host? If you are connecting to a port that is covered by a firewall or one that isn't correct it can sometimes cause this error.

____________________________
We have a Mustek 5 M/Pix GSm@rt USB Digital Camera
for just £74.03 , offer only on until 30th February!

<AllDuck.com>      

Enquiries/Sales: 0845 430 9862
Fax: 0870 950 4532

23-04-2003 at 12:24 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
ginosuarez
Level: Trainee

Registered: 27-07-2005
Posts: 1
icon Re: winsock time out

ok, when a connection fail because the time is out, it generate an error event  (a winsock event) then you can try to reconnect in this place something like this

private sub winsock_error(number as lon, description)
         ' capture the error timeout error number = 10060
         ' then if is it the correct number
         call Reconnect
         ' then you have another 30 to 45 sec to try a connection
end sub

thats what i do, i hope i can help you on time, and sorry for my english is not my firts language

Gino

27-07-2005 at 09:50 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Network : winsock time out
Previous Topic (Packet Routing)Next Topic (Login to Remote computer on UNIX from windows PC) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder