public interface ServerProtocol
| Modifier and Type | Field and Description |
|---|---|
static int |
STATE_CLOSED
Closed.
|
static int |
STATE_LISTENING
Listening for new connections.
|
static int |
STATE_PAUSED
Paused.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stop listening, refuse all incoming connections.
|
org.omg.IOP.TaggedProfile |
create_profile(int profile_tag,
ComponentSet component_set,
byte[] object_key)
Construct a tagged profile from parts.
|
void |
listen(int timeout)
Listen for a single connection.
|
boolean |
open()
Move to the listening state.
|
org.omg.CORBA.ORB |
orb()
An orb reference.
|
boolean |
pause()
Move to the paused state.
|
void |
run_listen()
Donate a thread for listening.
|
int |
state()
The channel state.
|
static final int STATE_LISTENING
perform_work waits
for a specified time for a new incoming connections and
work_pending returns true if there is a queued connection
request.static final int STATE_PAUSED
static final int STATE_CLOSED
perform_work returns false. Leaving this state
will result in re-registering with the ServerManager.org.omg.CORBA.ORB orb()
int state()
boolean open()
boolean pause()
void close()
void listen(int timeout)
void run_listen()
org.omg.IOP.TaggedProfile create_profile(int profile_tag,
ComponentSet component_set,
byte[] object_key)