|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProtocolAcceptor
A service for accepting incoming connections for a given protocol. A
ProtocolAcceptor must have a constructor that takes the following
arguments:
| Method Summary | |
|---|---|
void |
accept(ProtocolListener listener)
Starts accepting connections, and notifies the specified listener of new connections. |
void |
close()
Shuts down any pending accept operation as well as the acceptor itself. |
ProtocolDescriptor |
getDescriptor()
Returns the descriptor for this protocol. |
| Method Detail |
|---|
ProtocolDescriptor getDescriptor()
void accept(ProtocolListener listener)
throws IOException
listener of new connections.
When an incoming connection with a given identity is established
with this protocol acceptor, the protocol acceptor should invoke the
provided listener's newLogin
method with the identity and the protocol
connection.
listener - a protocol listener
IOException - if an IO problem occurs
void close()
throws IOException
IOException - if an IO problem occurs
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||