All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Make Components Into Apps

After you've created your client and server programs with their interfaces bound to each other, let's create a new app.

HelloIPCApp.png

To do this, we create an app definition file called helloWorld.adef.

$ gedit helloWorld.adef

It should look like this:

executables:
{
    myServer = ( greetServer )
    myClient = ( greetClient )
}

processes:
{
    run:
    {
        (myServer)
        (myClient)
    }
}

bindings:
{
    myClient.greetClient.hello -> myServer.greetServer.hello
}

This defines two executable programs called myServer (containing the greetServer component) and myClient (containing the greetClient component).

It then starts one instance of myServer and one instance of myClient, and binds myClient.greetClient.hello to myServer.greetServer.hello.

Now we can run mkapp to build everything and package it up into an app.

$ mkapp helloWorld.adef -t wp7

You'll now have a file called "helloWorld.wp7" that contains your app.

You can install and run it using instapp, see Create Applications for details.


Copyright (C) 2014 Sierra Wireless, Inc. Use of this work is subject to license.