Re: [twsocket] udp server and network configuration changes

2012-02-06 Thread Arno Garrels
Emanuele Bizzarri wrote:
 Hi Francois,
 thank you for your response.
 In the meanwhile, I also have found NotifyAddrChange function.
 It is already wrapped inside JwaIpHlpApi by jedi project.
 
 For now I'm using network interface polling.

Check out the IPv6 branch, SVN rev. #888, since ICS IPv6 uses winsock2 these
new events could be added:
IPv6 TWSocket Windows - Added events OnAddressListChanged and 
OnRoutingInterfaceChanged.
Assigning event handlers to those properties before a call to methods Connect 
or Listen ensures that the event notifications are registered and events are 
triggered when they occur.
Assigning handlers to those properties after Connect or Listen (if new 
ComponentOptions wsoNotifyAddressListChange or wsoNotifyRoutingInterfaceChange 
are _not set) requires an additional call to new methods 
SetAddressListChangeNotification and/or SetRoutingInterfaceChangeNotification 
in order to receive those notifications. 
Note that once one of these events triggered it has to be re-enabled, they are 
edge-triggered. 

svn://svn.overbyte.be/ics/branches/icsipv6
Use username = ics and password = ics for read access

-- 
Arno Garrels

 
 Bye
 
 
 
 - Messaggio originale -
 Da: François Piette francois.pie...@skynet.be
 A: ICS support mailing twsocket@elists.org
 Inviato: Venerdì, 3 febbraio 2012 18:37:02
 Oggetto: Re: [twsocket] udp server and network configuration changes
 
 There is a way to recognize networks changes like these?
 
 Have a look at IP Helper API:
 http://msdn.microsoft.com/en-us/library/aa366329(VS.85).aspx
 
 
 --
 francois.pie...@overbyte.be
 The author of the freeware multi-tier middleware MidWare
 The author of the freeware Internet Component Suite (ICS)
 http://www.overbyte.be
 
 
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Re: [twsocket] udp server and network configuration changes

2012-02-06 Thread Emanuele Bizzarri
Hi Arno,
I'll try it as soon as possible.

Thank you,
Bye

- Messaggio originale -
Da: Arno Garrels arno.garr...@gmx.de
A: ICS support mailing twsocket@elists.org
Inviato: Lunedì, 6 febbraio 2012 9:05:52
Oggetto: Re: [twsocket] udp server and network configuration changes

Emanuele Bizzarri wrote:
 Hi Francois,
 thank you for your response.
 In the meanwhile, I also have found NotifyAddrChange function.
 It is already wrapped inside JwaIpHlpApi by jedi project.
 
 For now I'm using network interface polling.

Check out the IPv6 branch, SVN rev. #888, since ICS IPv6 uses winsock2 these
new events could be added:
IPv6 TWSocket Windows - Added events OnAddressListChanged and 
OnRoutingInterfaceChanged.
Assigning event handlers to those properties before a call to methods Connect 
or Listen ensures that the event notifications are registered and events are 
triggered when they occur.
Assigning handlers to those properties after Connect or Listen (if new 
ComponentOptions wsoNotifyAddressListChange or wsoNotifyRoutingInterfaceChange 
are _not set) requires an additional call to new methods 
SetAddressListChangeNotification and/or SetRoutingInterfaceChangeNotification 
in order to receive those notifications. 
Note that once one of these events triggered it has to be re-enabled, they are 
edge-triggered. 

svn://svn.overbyte.be/ics/branches/icsipv6
Use username = ics and password = ics for read access

-- 
Arno Garrels

 
 Bye
 
 
 
 - Messaggio originale -
 Da: François Piette francois.pie...@skynet.be
 A: ICS support mailing twsocket@elists.org
 Inviato: Venerdì, 3 febbraio 2012 18:37:02
 Oggetto: Re: [twsocket] udp server and network configuration changes
 
 There is a way to recognize networks changes like these?
 
 Have a look at IP Helper API:
 http://msdn.microsoft.com/en-us/library/aa366329(VS.85).aspx
 
 
 --
 francois.pie...@overbyte.be
 The author of the freeware multi-tier middleware MidWare
 The author of the freeware Internet Component Suite (ICS)
 http://www.overbyte.be
 
 
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Re: [twsocket] udp server and network configuration changes

2012-02-05 Thread Emanuele Bizzarri
Hi Francois,
thank you for your response.
In the meanwhile, I also have found NotifyAddrChange function.
It is already wrapped inside JwaIpHlpApi by jedi project.

For now I'm using network interface polling.

Bye



- Messaggio originale -
Da: François Piette francois.pie...@skynet.be
A: ICS support mailing twsocket@elists.org
Inviato: Venerdì, 3 febbraio 2012 18:37:02
Oggetto: Re: [twsocket] udp server and network configuration changes

 There is a way to recognize networks changes like these? 

Have a look at IP Helper API:
http://msdn.microsoft.com/en-us/library/aa366329(VS.85).aspx


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




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

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

[twsocket] udp server and network configuration changes

2012-02-03 Thread Emanuele Bizzarri
Hi,
I've an udp socket listening on ip:port.
If I make some network configuration changes, no socket error will be triggered.
Is it normal?
I've tested following cases:
1. switching off wifi: netstat tells that the socket is listening yet. And it 
will continue receive data (I've tried from a client on the same pc). If I stop 
and then restart listening, the ip is available
2. changing ip from control panel: netstat tells that the socket is listening 
yet. But data transfer is interrupted. If I reconfigure the previous ip, data 
transfer begins again.
Is this the  windows behaviour? 
There is a way to recognize networks changes like these? 
I haven't tried with a listening tcp socket yet. Will it be able to recognize 
network configuration changes? If yes, I could use it in combination with my 
udp socket.

Thank you in advance

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


Re: [twsocket] udp server and network configuration changes

2012-02-03 Thread François Piette
 There is a way to recognize networks changes like these? 

Have a look at IP Helper API:
http://msdn.microsoft.com/en-us/library/aa366329(VS.85).aspx


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




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