Package ghidra.debug.api.tracermi
Interface TraceRmiAcceptor
public interface TraceRmiAcceptor
An acceptor to receive a single Trace RMI connection from a back-end
-
Method Summary
Modifier and TypeMethodDescriptionaccept()Accept a single connectionvoidcancel()Cancel the connectionGet the address (and port) where the acceptor is listeningbooleanisClosed()Check if the acceptor is actually still accepting.voidsetTimeout(int millis) Set the timeout
-
Method Details
-
accept
Accept a single connectionThis acceptor is no longer valid after the connection is accepted. If accepting the connection fails, e.g., because of a timeout, this acceptor is no longer valid.
- Returns:
- the connection, if successful
- Throws:
IOException- if there was an errorCancelledException- ifcancel()is called, usually from the user canceling
-
isClosed
boolean isClosed()Check if the acceptor is actually still accepting.- Returns:
- true if not accepting anymore
-
getAddress
SocketAddress getAddress()Get the address (and port) where the acceptor is listening- Returns:
- the socket address
-
setTimeout
Set the timeout- Parameters:
millis- the number of milliseconds after which anaccept()will time out.- Throws:
SocketException- if there's a protocol error
-
cancel
void cancel()Cancel the connectionIf a different thread has called
accept(), it will fail. In this case, bothTraceRmiServiceListener.acceptCancelled(TraceRmiAcceptor)andTraceRmiServiceListener.acceptFailed(TraceRmiAcceptor, Exception)may be invoked.
-