|
-
Oct 10th, 2000, 05:43 PM
#1
Thread Starter
Junior Member
Winsock UDP Problems
I have a chat program that I've been working on and it works great. I use a UDP connection to send/receive messages and the like. I have 2 computers set up, both with different IP's for development purposes. Only one problem, though. After a while of running the program as a host or client it just quits responding. Neither the host computer nor the client computer will respond to any data sent between them from my program.
Any ideas as to what I need to do? Do I need to free up the port somehow? I use the bind command so that no other applications can use my port, but the problem still seems to come up.
And if you are curious, I am not behind a firewall.
Thanks in advance!
Jason
-
Oct 10th, 2000, 06:28 PM
#2
Fanatic Member
Does this occur when no data has been transfered over a period of time? That would mean the connection timedout. You would have to reestablish it in that case. The way you could do that is have an error trap and when a connection error comes up...fire your connecting routine.
Gl,
D!m
-
Oct 10th, 2000, 06:36 PM
#3
Thread Starter
Junior Member
Hmm.. I suppose that could be it. But does a UDP really time out? And if so, how can I set it to a higher timeout?
-
Nov 28th, 2000, 05:26 AM
#4
PowerPoster
You probably have to ping the other client from time to time as IRC clients do...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|