2010 FRC Java API


com.sun.spot.ota
Class ServerSocketListener

java.lang.Object
  extended by com.sun.spot.ota.ServerSocketListener
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
OtaCommandServerSocketListener, PipeServerSocketListener

public abstract class ServerSocketListener
extends Object
implements Runnable

Author:
ea149956

Field Summary
 boolean keepRunning
           
 int port
           
 
Constructor Summary
ServerSocketListener(int port)
           
 
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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

public int port

keepRunning

public boolean keepRunning
Constructor Detail

ServerSocketListener

public ServerSocketListener(int port)
Method Detail

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()

2010 FRC Java API


Copyright © 2006-2009 Sun Microsystems, Inc. All Rights Reserved.