com.sun.spot.ota
Class ServerSocketListener
java.lang.Object
com.sun.spot.ota.ServerSocketListener
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- OtaCommandServerSocketListener, PipeServerSocketListener
public abstract class ServerSocketListener
- extends Object
- implements Runnable
- Author:
- ea149956
Method Summary |
void |
free()
|
abstract Runnable |
newRunnable(StreamConnection connection)
|
void |
run()
When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
void |
start()
|
void |
stopRunning()
|
port
public int port
keepRunning
public boolean keepRunning
ServerSocketListener
public ServerSocketListener(int port)
newRunnable
public abstract Runnable newRunnable(StreamConnection connection)
run
public void run()
- Description copied from interface:
Runnable
- When an object implementing interface
Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
The general contract of the method run
is that it may
take any action whatsoever.
- Specified by:
run
in interface Runnable
- See Also:
Thread.run()
free
public void free()
start
public void start()
stopRunning
public void stopRunning()
Copyright © 2006-2009 Sun Microsystems, Inc. All Rights Reserved.