|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.core.ipc.Server
public class Server
The main entry point for Ipc server connections. Create and start the appropriate service for a server.
TcpServerService
Constructor Summary | |
---|---|
Server(java.net.InetAddress address,
int port,
NotifierIfc notifier)
Construct an appropriate service with the given port number. |
|
Server(int port,
NotifierIfc notifier)
Construct an appropriate service with the given port number. |
|
Server(NotifierIfc notifier)
Instantiate an appropriate service. |
Method Summary | |
---|---|
java.lang.String |
getHost()
Return the machines address. |
int |
getPort()
Return the port number this server is listening on. |
void |
run()
Start the service running. |
void |
stop()
Shutdown the service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Server(NotifierIfc notifier) throws java.io.IOException
notifier
- The client handle to call when data is received.
java.io.IOException
public Server(int port, NotifierIfc notifier) throws java.io.IOException
port
- The port to connect on.notifier
- The client handle to call when data is received.
java.io.IOException
public Server(java.net.InetAddress address, int port, NotifierIfc notifier) throws java.io.IOException
address
- the local IP address to bind to. May be null.port
- the port to connect on.notifier
- the client handle to call when data is received.
java.io.IOException
Method Detail |
---|
public void stop()
public int getPort()
public java.lang.String getHost()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |