public interface ChronicleServerSocketChannel extends Closeable
| Modifier and Type | Method and Description |
|---|---|
ChronicleSocketChannel |
accept() |
void |
bind(InetSocketAddress address)
Binds the channel's socket to a local address and configures the socket
to listen for connections.
|
void |
close() |
void |
configureBlocking(boolean b) |
SocketAddress |
getLocalAddress() |
String |
hostPort() |
boolean |
isOpen() |
void |
setOption(SocketOption<Boolean> soReuseaddr,
boolean b) |
ChronicleServerSocket |
socket() |
ChronicleSocketChannel accept() throws IOException
IOExceptionboolean isOpen()
ChronicleServerSocket socket()
void close()
close in interface AutoCloseableclose in interface Closeablevoid bind(InetSocketAddress address) throws IOException
An invocation of this method is equivalent to the following:
bind(local, 0);
address - The local address to bind the socket, or null to bind
to an automatically assigned socket addressAlreadyBoundException - if boundUnsupportedAddressTypeException - if address unsupportedClosedChannelException - if channel is closedIOException - if unable to openSecurityException - If a security manager has been installed and its checkListen
method denies the operationSocketAddress getLocalAddress() throws IOException
IOExceptionvoid setOption(SocketOption<Boolean> soReuseaddr, boolean b) throws IOException
IOExceptionvoid configureBlocking(boolean b)
throws IOException
IOExceptionString hostPort()
Copyright © 2023. All rights reserved.