|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.android_scripting.SimpleServer
public abstract class SimpleServer
A simple server.
| Nested Class Summary | |
|---|---|
static interface |
SimpleServer.SimpleServerObserver
|
| Constructor Summary | |
|---|---|
SimpleServer()
|
|
| Method Summary | |
|---|---|
void |
addObserver(SimpleServer.SimpleServerObserver observer)
Adds an observer. |
int |
getNumberOfConnections()
Returns the number of active connections to this server. |
static java.net.InetAddress |
getPublicInetAddress()
|
void |
removeObserver(SimpleServer.SimpleServerObserver observer)
Removes an observer. |
void |
shutdown()
|
java.net.InetSocketAddress |
startAllInterfaces(int port)
data Starts the RPC server bound to all interfaces |
java.net.InetSocketAddress |
startLocal(int port)
Starts the RPC server bound to the localhost address. |
java.net.InetSocketAddress |
startPublic(int port)
data Starts the RPC server bound to the public facing address. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleServer()
| Method Detail |
|---|
public void addObserver(SimpleServer.SimpleServerObserver observer)
public void removeObserver(SimpleServer.SimpleServerObserver observer)
public int getNumberOfConnections()
public static java.net.InetAddress getPublicInetAddress()
throws java.net.UnknownHostException,
java.net.SocketException
java.net.UnknownHostException
java.net.SocketExceptionpublic java.net.InetSocketAddress startLocal(int port)
port - the port to bind to or 0 to pick any unused port
public java.net.InetSocketAddress startPublic(int port)
port - the port to bind to or 0 to pick any unused port
public java.net.InetSocketAddress startAllInterfaces(int port)
port - the port to bind to or 0 to pick any unused port
public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||