Hi,
I’m trying to write threaded application which will communicate
(in both directions) through UDP (first thread for reading, second
for writing).
My problem is that I’m unable to get it to work … I admit I’m not expert
in this field, but it simply hangs on recvfrom(). The problem is that select()
reports ‘read data ready’ even if there are NO data and thus it remains
locked I tried to wrap it in timeout(){} block … but the result
is still the same … it locks after first recvfrom().
Is there anybody who got this to work properly? Please, speak up …
Thanks in advance,
W.
PS: Another weird thing is that I’m constantly getting
Invalid argument - "sendto(2)"
(Errno::EINVAL) when sending data to
non-bound socket.
···
–
Wejn <lists+rubytalk(at)box.cz>
(svamberk.net’s Linux section, fi.muni.cz student, linuxfan)
Bored? Want hours of entertainment? <<< Just set the initdefault to 6! <<<