Java java.nio.channels ServerSocketChannel fields, constructors, methods, implement or subclass

Example usage for Java java.nio.channels ServerSocketChannel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio.channels ServerSocketChannel.

The text is from its open source code.

Method

SocketChannelaccept()
Accepts a connection made to this channel's socket.
ServerSocketChannelbind(SocketAddress local)
Binds the channel's socket to a local address and configures the socket to listen for connections.
voidclose()
Closes this channel.
SelectableChannelconfigureBlocking(boolean block)
Adjusts this channel's blocking mode.
SocketAddressgetLocalAddress()

If there is a security manager set, its checkConnect method is called with the local address and -1 as its arguments to see if the operation is allowed.

TgetOption(SocketOption name)
Returns the value of a socket option.
ServerSocketChannelopen()
Opens a server-socket channel.
SelectionKeyregister(Selector sel, int ops)
Registers this channel with the given selector, returning a selection key.
SelectionKeyregister(Selector sel, int ops, Object att)
Registers this channel with the given selector, returning a selection key.
ServerSocketChannelsetOption(SocketOption name, T value)
ServerSocketsocket()
Retrieves a server socket associated with this channel.