Hi,
On Thu, 2011-10-13 at 08:04 -0700, Daniel Wagner wrote:
> +When the application calls Disconnect() the session enters the
> +Disconnect state and stays there until the application calls Connect()
> +again.
> +
> +
> + State Change to offline & StayConnected = True
> + +------+
> + | v
> ++-----------+ +---------+ +------------+
> +| Free Ride |-- Connect() -->| Connect |-- Disconnect() --> | Disconnect |
> ++-----------+ +---------+ +------------+
> + | ^ | ^
> + | +------------------------ + |
> + | State Change to offline & StayConnected = False |
> + | |
> + | |
> + +----------------------- Disconnect() -----------------------+
In state Disconnect, I assume the session goes to state Connect when
Connect() is called (that arrow is missing in the picture). How does a
session in Free Ride get back to Free Ride if it has called
Disconnect()?
I'd assume there are applications that unconditionally want a connection
when the user clicks on a "Update RSS feed" button, but otherwise want
to piggyback on the connectivity of other applications when it's idling
in the background. Thus the application would first do a Connect() and
Disconnect(), but then it would want to go to the Free Ride state.
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman