|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AcceptorOperations
An interface for an Acceptor object, which is used by CORBA servers to accept client connection requests. It also provides operations for the management of IOR profiles.
AccRegistry
,
AccFactory
,
Transport
Method Summary | |
---|---|
Transport |
accept(boolean block)
Used by CORBA servers to accept client connection requests. |
void |
add_profiles(ProfileInfo profile_info,
POAPolicies policies,
IORHolder ref)
Add new profiles that match this Acceptor to an IOR. |
void |
close()
Closes the Acceptor. |
Transport |
connect_self()
Connect to this acceptor. |
AcceptorInfo |
get_info()
Returns the information object associated with the Acceptor. |
ProfileInfo[] |
get_local_profiles(IOR ref)
From the given IOR, get basic information about all profiles for which are local to this Acceptor. |
int |
handle()
The "handle" for this Acceptor. |
String |
id()
The plugin id. |
void |
listen()
Sets the acceptor up to listen for incoming connections. |
void |
shutdown()
Shutdown the Acceptor. |
int |
tag()
The profile id tag. |
Method Detail |
---|
String id()
int tag()
int handle()
select()
. A handle value of -1
indicates that the protocol plug-in does not support
"selectable" Transports.
void close()
accept
or listen
may not be called after close
has been called.
COMM_FAILURE
- In case of an error.void shutdown()
COMM_FAILURE
- In case of an error.void listen()
COMM_FAILURE
- In case of an error.Transport accept(boolean block)
block
- If set to TRUE
, the operation blocks
until a new connection has been accepted. If set to
FALSE
, the operation returns a nil object
reference if there is no new connection ready to be accepted.
COMM_FAILURE
- In case of an error.Transport connect_self()
accept
.
TRANSIENT
- If the server cannot be contacted.
COMM_FAILURE
- In case of other errors.void add_profiles(ProfileInfo profile_info, POAPolicies policies, IORHolder ref)
profile_info
- The basic profile information to use for
the new profiles.ref
- The IOR.ProfileInfo[] get_local_profiles(IOR ref)
ref
- The IOR from which the profiles are taken.
AcceptorInfo get_info()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |