Hi,
 Anyone seen random time when a UDP Socket RecvPacket never clears and always 
return a "OK" result (0)?
if SocketRx.CanRead(1000) then              begin                if not 
Terminated then                begin                  while SocketRx.LastError 
= 0 do                  begin                    Packet := 
SocketRx.RecvPacket(0);       <<< Always returns 0 with the same Packet         
           case SocketRx.LastError of                      0 :                  
      begin                             …..                           // Send 
UDP mDNS Reply with Answers                        end;                         
                  WSAETIMEDOUT :                        begin                   
     end;                      WSAECONNABORTED :                        begin   
                       HandleErrorAndDisconnect;                        end;    
This only happens occasionally.  I am using Lazarus on OSX with a mDNS packet 
being sent from IE on a virtual machine using a url of "openlcb.local" and 
Bonjour installed on Windows.
I have looked at it with WireShark and it is clear that IE only sends a single 
mDNS Request packet and my code get stuck in a loop sending the mDNS reply over 
and over as illustrated above.
I am sure I am doing something wrong but what?
Thanks,Jim            
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to