PDA

Click to See Complete Forum and Search --> : Winsock UDP Problems


Ravyn
Oct 10th, 2000, 05:43 PM
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

Dim
Oct 10th, 2000, 06:28 PM
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

Ravyn
Oct 10th, 2000, 06:36 PM
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?

Fox
Nov 28th, 2000, 04:26 AM
You probably have to ping the other client from time to time as IRC clients do...