Class SIPDemo

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by SIPDemo
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class SIPDemo
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener


Nested Class Summary
(package private)  class SIPDemo.ReceiveThread
          Receive Message Thread
(package private)  class SIPDemo.SendThread
          Send Message Thread
 
Constructor Summary
SIPDemo()
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
           
 void destroyApp(boolean b)
           
 int getPort(java.lang.String s)
          Converts ASCII to int and ensures a positive number
 void pauseApp()
           
 void receiveMessage()
           
 void receiveTextMessage()
           
 void sendTextMessage(java.lang.String msg)
           
 void startApp()
           
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SIPDemo

public SIPDemo()
Method Detail

receiveMessage

public void receiveMessage()

receiveTextMessage

public void receiveTextMessage()

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable s)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

getPort

public int getPort(java.lang.String s)
Converts ASCII to int and ensures a positive number. -1 indicates an error.


startApp

public void startApp()
Specified by:
startApp in class javax.microedition.midlet.MIDlet

sendTextMessage

public void sendTextMessage(java.lang.String msg)

destroyApp

public void destroyApp(boolean b)
Specified by:
destroyApp in class javax.microedition.midlet.MIDlet

pauseApp

public void pauseApp()
Specified by:
pauseApp in class javax.microedition.midlet.MIDlet