class NetAltingConnectionServer extends AltingConnectionServerImpl implements NetConnectionServer
Instances of this class are AltingConnectionServer
objects which allow connections from ConnectionClient
objects from over a JCSP.NET network.
Instances of this class are not guaranteed to be safe to use
by muliple concurrent processes. See
for a server
class that may be used between multiple processes, however
this may not be ALTed over.
NetSharedConnectionServer
Instances can be constructed by using a
or by
using the NetConnectionFactory class.
NetConnection
| Modifier and Type | Field and Description |
|---|---|
private NetAltingChannelInput |
chan |
SERVER_STATE_CLOSED, SERVER_STATE_OPEN, SERVER_STATE_RECEIVEDFACTORY| Modifier | Constructor and Description |
|---|---|
private |
NetAltingConnectionServer(NetAltingChannelInput chan) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static NetAltingConnectionServer |
create() |
void |
destroyServer()
Destroys the server and frees any resources used
in the JCSP.NET infrastructure.
|
NetChannelLocation |
getChannelLocation()
Returns the server's location.
|
getServerState, reply, reply, replyAndClose, requestgetAltingChannel, pending, setAltingChannelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreply, reply, replyAndClose, requestprivate NetAltingChannelInput chan
private NetAltingConnectionServer(NetAltingChannelInput chan)
static NetAltingConnectionServer create()
public NetChannelLocation getChannelLocation()
getChannelLocation in interface NetworkedNetChannelLocation
object.public void destroyServer()
destroyServer in interface NetConnectionServer