RSS Forums RSS
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums

Winsock Problem

Join Date: Jul 2005
Location: Iceland
Posts: 104
Reputation: Alvein is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Alvein's Avatar
Alvein Alvein is offline Offline
Junior Poster

Re: Winsock Problem

  #6  
Jul 25th, 2005
Originally Posted by Burndailer
Hello,

Thx again for your reply.
Sorry my english reading is not so good , i'm from the netherlands. :o
I try to understand what you're trying to tell me.
The game makes a connection with port 21 so thats not the problem.
The ports i can switch, also change if neccery.
But i will try to do what you sayd in the pm.
Hopely it works, because its a very difficult command and not easy.

Hopely i can figure the code out of that :rolleyes:

Well, I try to do my best here. I'm not an english speaker either.

Basicly, the difficulty lies on that your way to look for a free port on server is pretty linear, while Winsock control is events-oriented.

The first thing you should do is to remove the three "If Winsock1.RemotePort =" blocks. I guess the first .Connect you try is on the port 21, right? well, if you cannot connect for some reason, that will send you to the Winsock1_Error event. There you can check the RemotePort and decide where to try to .Connect again.

I insist, it's not the best method to do what you require.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:50 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC