Hi Hemant,

On 08/22/2011 02:09 PM, Hemant Chauhan wrote:
> [root@localhost test]# ./test-session disable
> [root@localhost test]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:14:22:45:BD:5B  
>           inet6 addr: fe80::214:22ff:fe45:bd5b/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:11897 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:6344 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:9048814 (8.6 MiB)  TX bytes:875676 (855.1 KiB)
>           Interrupt:16 
> Ethernet inet addr did not come up. So for bringing it up, using ethernet 
> service path is right?

Yes, when you disable the session mode, the service wont be touched. So
if a service was online it stays online and if it was offline it stays
offline. Generally, you only do once a session enable at boot up and
then you would stay in this mode. Switching back is more kind of debug
feature.

> 2) Secondly, if i have to create a session for some application, then what 
> <app_path> i need to metion.

The test script is written in this way, that you create an application
with an identifier (e.g. /foo). This application waits for input from
the command line. Since the command line needs to know to which
application it has to send the command you need to provide the
identifier. In the meantime I have created a small demo application
using pyqt which makes this a bit more simpler.

> Did i need first to configure it, then create and after that connect? Could 
> you please explain with some example.

The order when you want to configure it is not of importance. You can
either configure before you create a session (so it gets the right
values right away) or you can change that later. Even after you have
called Session.Connect().

cheers,
daniel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to