P
person
Hi,
I'm trying to write a program to capture a torrent of UDP messages.
The way I understand it, UDP is an unreliable protocol and packets can
be lost. However, I want to maximize the amount of traffic I capture
from the port. My first idea was to have a process with one thread
that just watched the port and stuffed each UDP message into a message
queue. Another thread in the same process would fetch messages from
the queue and do whatever with it.
This idea performed so poorly that I have to conclude it was a bad
idea. Does anyone on the list do this sort of thing? Does anyone have
an idea about how to do this, that they're willing to share?
Any help here will be greatly appreciated! I'm using gnu c running in
the cygwin environment on w2k platform.
Thanks,
Frank
I'm trying to write a program to capture a torrent of UDP messages.
The way I understand it, UDP is an unreliable protocol and packets can
be lost. However, I want to maximize the amount of traffic I capture
from the port. My first idea was to have a process with one thread
that just watched the port and stuffed each UDP message into a message
queue. Another thread in the same process would fetch messages from
the queue and do whatever with it.
This idea performed so poorly that I have to conclude it was a bad
idea. Does anyone on the list do this sort of thing? Does anyone have
an idea about how to do this, that they're willing to share?
Any help here will be greatly appreciated! I'm using gnu c running in
the cygwin environment on w2k platform.
Thanks,
Frank