System Introspection for System Analysis on Mobile Devices
System Introspection for System Analysis on Mobile Devices
System Introspection for System Analysis on Mobile Devices
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Figure 4.5: Typical instant messaging sessi<strong>on</strong> - 1) Establish c<strong>on</strong>necti<strong>on</strong>to the server “M<strong>on</strong>tague.lit“. 2) Request roosterc<strong>on</strong>taining known friend accounts. 3) Make own presenceavailable to c<strong>on</strong>tacts of the rooster. 4) Receivepresence of c<strong>on</strong>tacts from rooster. 5) Exchange messagewith another c<strong>on</strong>tact [From Saint-Andre (2005)]attached to a message stanza. Listing 4.1 shows a typical message stanza.A message c<strong>on</strong>tains the name of the sender, the recipient the message is <str<strong>on</strong>g>for</str<strong>on</strong>g>wardedto and the body c<strong>on</strong>taining the text to be send. XMPP also allows toextend these message with XML elements.XMPP Library <str<strong>on</strong>g>for</str<strong>on</strong>g> JavaThe probe and the client are both implemented in Java (see chapter 6). Touse XMPP within Java the SMACK 13 library is integrated. SMACK offers anopen source API with functi<strong>on</strong>ality <str<strong>on</strong>g>for</str<strong>on</strong>g> c<strong>on</strong>necting to a server and exchangingmessages between different clients. There is also a port of the library <str<strong>on</strong>g>for</str<strong>on</strong>g> theandroid operati<strong>on</strong> system. SMACK allows to extend the message stanza withvalue pairs added as properties.13 http://www.webcitati<strong>on</strong>.org/5wiKn3W0C - SMACK library by ignite realtime18