[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ecf-dev] Connection awareness API
|
Hi Pascal,
This is a tough question to answer yes/no...because the answer depends
upon exactly what you mean by 'network is up'.
First, from a given process, 'the network' can/could mean a variety of
things:
1) The OS device (/eth0) is installed/working/connected at media layer
(e.g. wifi)
2) TCP/IP stack installed/active (obviously includes localhost)
3) DNS is functioning
4) A specific remote machine (e.g. gateway) is reachable (e.g. ping)
5) TCP/IP and/or UDP can be used for accessing a particular server
and/or peer
6) Accessing a set servers/peers (how much of 'the network').
Also, there is a further subtlety...between a) determining whether each
of these levels is working (without a specific connection being formed),
and b) being notified if an existing connection goes down.
Most ECF providers have plenty of support for b...and this is provided
via async notification of IContainer disconnection (once in connected
state of course...which, depending upon underlying protocols used...e.g.
IP/UDP/DNS/TCP, support such notification). If detection of network
failure is what you are interested in, then the answer is generally
'yes'...for most/many providers.
In general, we don't provide cross-transport (or cross-OS) APIs for
accessing the state of the physical, data link, and network layers (in
OSI terms 1, 2, and 3 above)...mostly because these are specific to
hw-specifiic, OS-specific and tcp/ip stack-specific APIs. So if that's
what you are asking the answer is generally 'no' (excepting the
discovery API with some providers).
Also...if you would/could describe the use case a little further, I'll
happily respond with more brevity :).
Scott
Pascal Rapicault wrote:
Hello,
Does ECF provide an API to know whether or not a network is up on the
machine?
Ths
PaScaL
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev