home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1774
Discussions: 188,401, Posts: 2,243,603, Members: 232,630
Old November 24th, 2004, 08:53 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Jun 2004
Location: USA
Posts: 27
Send a message via AIM to darssus
Lightbulb
Solution to error 10096 using winsock in Visual basic

I have posted on Help (Again) - VB6 ... In where I was wondering why the program would give an error 10096 after I connect to a port, I would disconnect from the port, and it would stay open for 2-4 minutes extra after I disconnected to it. I found a solution to this problem on MSDN (for once). The reason is that after a connect, Windows and VB keep ports open for 2-4 minutes after a disconnect, because 2 minutes is the maximum length of time after a send that a client/server could respond. So of course they keep the port open for at a most of 2 minutes more (unecissary [I know the spelling is wrong]). So in order to deal withthis, I just created a Winsock array, and if there is an error 10096 I have it just load another element and connect through that, in response to this action the server has up to 100 ports open at a time.

Soooo, if anyone has come across this error, this is my solution, has anyone else come up with this or any other solution.

Dar

darssus is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
An error with Microsoft Visual BASIC .Net 2003 Argon88 Technical Support 2 October 31st, 2003 11:01 PM
AOL Not working... Rand Dusing Networking and Internet 3 September 2nd, 2003 10:06 AM
FTp mayhem - What is going on? Redwolf Networking and Internet 25 January 13th, 2003 10:27 AM
Visual Basic Paluccie Webmastering and Programming 32 December 16th, 2002 07:09 PM
WINSOCK lilmike Webmastering and Programming 6 January 13th, 2002 02:05 PM

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (6)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
How do you move a hard-drive to.. (4)
Laptop proccesor to desktop mob.. (1)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
For cheap price and good qualit.. (1)
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
wishin i could edit my aol prof.. (0)
Sporadic internet connectivity (2)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:44 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28