Re: [twsocket] Listening UDP socket

2006-11-29 Thread Angus Robertson - Magenta Systems Ltd
> I think multicast has some kind of connection to the multicast 
> group. It make sense to me that no connection is a problem for that 
> connection to the group. But I have no real experience.

Did some more investigations, the same problem was happening with a 
normal UDP listening socket, as well as multicast.  If it is still 
listening when the network adaptor closes down, the socket seems to get 
locked into a useless state.  

Even closing the listening socket when the network connections is lost, 
and re-opening it when the connection restarts  does not resume real 
listening.  

I finally changed the component from static to dynamic so I could 
destroy it when the connection was lost and re-create it later, and that 
has solved the problem for broadcast and multicast.  

Strangely, the same problem happened on one of the servers running the 
same software in different mode, acting as a UDP proxy UDP forwarding 
packets from one network to another, it stopped both listening and 
sending at midnight when the two sockets were closed for 10 seconds and 
then re-opened (so daily log files roll over cleanly), but never worked 
again. 

So perhaps there's a WSocket UDP close problem, something not being done 
that happens when the component is freed and recreated.  

I've not seen this problem with TCP, the same application listens on a 
couple of TCP ports and those are opened OK before the network adaptor 
is connected, and survive it being disconnected (probably!). 

Angus
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Listening UDP socket

2006-11-28 Thread Francois Piette
I think multicast has some kind of connection to the multicast group. It
make sense to me that no connection is a problem for that connection to the
group. But I have no real experience.
--
[EMAIL PROTECTED]
http://www.overbyte.be

- Original Message - 
From: "Angus Robertson - Magenta Systems Ltd" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, November 28, 2006 7:55 PM
Subject: [twsocket] Listening UDP socket


> Should it be possible to start listening on a socket when the network
> adaptor is not connected, specifically a multicast address?  In my case
> this is a wireless adaptor out of range.
>
> I'm using UDP multicasting with 225.1.55.55, and unless the adaptor is
> connected I get an 'address not available' exception when listening.  A
> normal UDP socket listens OK.
>
> Also, if the network connection drops, and then reconnects later, no
> further multicasts are received.  It seems to socket must be closed each
> time the connection drops, and listen started again later.
>
> Is this all known multicasting behaviour?
>
> Angus
>
>
>
>
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be