- getAddress() - Method in class io.ktor.network.sockets.Datagram
-
to send to
- getAllInterests() - Method in class io.ktor.network.selector.SelectInterest.Companion
-
- getCancelled() - Method in class io.ktor.network.selector.SelectorManagerSupport
-
Number of cancelled keys
- getChannel() - Method in interface io.ktor.network.selector.Selectable
-
associated channel
- getCoroutineContext() - Method in class io.ktor.network.selector.ActorSelectorManager
-
- getCustomOptions() - Method in class io.ktor.network.sockets.SocketOptions
-
- getDefaultDatagramByteBufferPool() - Static method in class io.ktor.network.util.PoolsKt
-
Byte buffer pool for UDP datagrams
- getEmpty() - Method in class io.ktor.network.sockets.SocketOptions.Companion
-
Deprecated.
- getFlag() - Method in enum io.ktor.network.selector.SelectInterest
-
to be set in NIO selector
- getFlags() - Method in class io.ktor.network.selector.SelectInterest.Companion
-
interest's flags in enum entry order
- getIncoming() - Method in interface io.ktor.network.sockets.DatagramReadChannel
-
Incoming datagrams channel
- getInterestedOps() - Method in interface io.ktor.network.selector.Selectable
-
current interests
- getIntValue() - Method in class io.ktor.network.sockets.TypeOfService
-
Integer representation of this ToS
- getIoCoroutineDispatcher() - Static method in class io.ktor.network.util.PoolsKt
-
Deprecated.
- getIoThreadGroup() - Static method in class io.ktor.network.util.PoolsKt
-
Deprecated.
- getIPTOS_LOWCOST() - Method in class io.ktor.network.sockets.TypeOfService.Companion
-
- getIPTOS_LOWDELAY() - Method in class io.ktor.network.sockets.TypeOfService.Companion
-
- getIPTOS_RELIABILITY() - Method in class io.ktor.network.sockets.TypeOfService.Companion
-
- getIPTOS_THROUGHPUT() - Method in class io.ktor.network.sockets.TypeOfService.Companion
-
- getKeepAlive() - Method in class io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions
-
SO_KEEPALIVE option is to enable/disable TCP keep-alive
- getLingerSeconds() - Method in class io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions
-
SO_LINGER option applied at socket close, not recommended to set to 0 however useful for debugging
Value of -1 is the default and means that it is not set and system-dependant
- getLocalAddress() - Method in interface io.ktor.network.sockets.ABoundSocket
-
Local socket address. Could throw an exception if no address bound yet.
- getNoDelay() - Method in class io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions
-
TCP_NODELAY socket option, useful to disable Nagle
- getOptions() - Method in interface io.ktor.network.sockets.Configurable
-
Current socket options
- getOptions() - Method in class io.ktor.network.sockets.SocketBuilder
-
Current socket options
- getOptions() - Method in class io.ktor.network.sockets.TcpSocketBuilder
-
Current socket options
- getOptions() - Method in class io.ktor.network.sockets.UDPSocketBuilder
-
Current socket options
- getOutgoing() - Method in interface io.ktor.network.sockets.DatagramWriteChannel
-
Datagram outgoing channel
- getPacket() - Method in class io.ktor.network.sockets.Datagram
-
content
- getPending() - Method in class io.ktor.network.selector.SelectorManagerSupport
-
Number of pending selectables
- getProvider() - Method in interface io.ktor.network.selector.SelectorManager
-
NIO selector provider
- getProvider() - Method in class io.ktor.network.selector.SelectorManagerSupport
-
NIO selector provider
- getReceiveBufferSize() - Method in class io.ktor.network.sockets.SocketOptions.PeerSocketOptions
-
Socket incoming buffer size (SO_RCVBUF), -1 or 0 to make system decide
- getRemoteAddress() - Method in interface io.ktor.network.sockets.AConnectedSocket
-
Remote socket address. Could throw an exception if the peer is not yet connected or already disconnected.
- getReuseAddress() - Method in class io.ktor.network.sockets.SocketOptions
-
SO_REUSEADDR option
- getReusePort() - Method in class io.ktor.network.sockets.SocketOptions
-
SO_REUSEPORT option, may not work with old JDK (will be silently ignored)
- getSendBufferSize() - Method in class io.ktor.network.sockets.SocketOptions.PeerSocketOptions
-
Socket ougoing buffer size (SO_SNDBUF), -1 or 0 to make system decide
- getSize() - Method in class io.ktor.network.selector.SelectInterest.Companion
-
- getSocketContext() - Method in interface io.ktor.network.sockets.ASocket
-
Represents a socket lifetime, completes at socket closure
- getSuspensions() - Method in interface io.ktor.network.selector.Selectable
-
Current selectable suspensions map
- getTypeOfService() - Method in class io.ktor.network.sockets.SocketOptions
-
- getUNDEFINED() - Method in class io.ktor.network.sockets.TypeOfService.Companion
-
- getValue() - Method in class io.ktor.network.sockets.TypeOfService
-
an unsigned byte IP
- select(selectable, interest, p) - Method in interface io.ktor.network.selector.SelectorManager
-
Suspends until interest is selected for selectable
May cause manager to allocate and run selector instance if not yet created.
- select(selectable, interest, p) - Method in class io.ktor.network.selector.SelectorManagerSupport
-
Suspends until interest is selected for selectable
May cause manager to allocate and run selector instance if not yet created.
- Selectable - Interface in io.ktor.network.selector
-
- SelectInterest - Enum in io.ktor.network.selector
-
Select interest kind
- SelectInterest(flag) - Constructor for enum io.ktor.network.selector.SelectInterest
-
Select interest kind
- SelectInterest.Companion - Class in io.ktor.network.selector
-
- SelectorManager - Interface in io.ktor.network.selector
-
Selector manager is a service that manages NIO selectors and selection threads
- SelectorManager.Companion - Class in io.ktor.network.selector
-
- SelectorManagerKt - Class in io.ktor.network.selector
-
- SelectorManagerSupport - Class in io.ktor.network.selector
-
Base class for NIO selector managers
- SelectorManagerSupport.ClosedSelectorCancellationException - Exception in io.ktor.network.selector
-
- send($this, datagram, p) - Static method in class io.ktor.network.sockets.DatagramWriteChannel.DefaultImpls
-
Send datagram
- send(datagram, p) - Method in interface io.ktor.network.sockets.DatagramWriteChannel
-
Send datagram
- ServerSocket - Interface in io.ktor.network.sockets
-
Represents a server bound socket ready for accepting connections
- setCancelled(p) - Method in class io.ktor.network.selector.SelectorManagerSupport
-
Number of cancelled keys
- setKeepAlive(p) - Method in class io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions
-
SO_KEEPALIVE option is to enable/disable TCP keep-alive
- setLingerSeconds(p) - Method in class io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions
-
SO_LINGER option applied at socket close, not recommended to set to 0 however useful for debugging
Value of -1 is the default and means that it is not set and system-dependant
- setNoDelay(p) - Method in class io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions
-
TCP_NODELAY socket option, useful to disable Nagle
- setOptions(p) - Method in interface io.ktor.network.sockets.Configurable
-
Current socket options
- setOptions(p) - Method in class io.ktor.network.sockets.SocketBuilder
-
Current socket options
- setOptions(p) - Method in class io.ktor.network.sockets.TcpSocketBuilder
-
Current socket options
- setOptions(p) - Method in class io.ktor.network.sockets.UDPSocketBuilder
-
Current socket options
- setPending(p) - Method in class io.ktor.network.selector.SelectorManagerSupport
-
Number of pending selectables
- setReceiveBufferSize(p) - Method in class io.ktor.network.sockets.SocketOptions.PeerSocketOptions
-
Socket incoming buffer size (SO_RCVBUF), -1 or 0 to make system decide
- setReuseAddress(p) - Method in class io.ktor.network.sockets.SocketOptions
-
SO_REUSEADDR option
- setReusePort(p) - Method in class io.ktor.network.sockets.SocketOptions
-
SO_REUSEPORT option, may not work with old JDK (will be silently ignored)
- setSendBufferSize(p) - Method in class io.ktor.network.sockets.SocketOptions.PeerSocketOptions
-
Socket ougoing buffer size (SO_SNDBUF), -1 or 0 to make system decide
- setTypeOfService(p) - Method in class io.ktor.network.sockets.SocketOptions
-
- Socket - Interface in io.ktor.network.sockets
-
Represents a connected socket
- SocketBuilder - Class in io.ktor.network.sockets
-
Socket builder
- SocketOptions - Class in io.ktor.network.sockets
-
Socket options builder
- SocketOptions.AcceptorOptions - Class in io.ktor.network.sockets
-
TCP server socket options
- SocketOptions.Companion - Class in io.ktor.network.sockets
-
- SocketOptions.PeerSocketOptions - Class in io.ktor.network.sockets
-
Represents TCP client or UDP socket options
- SocketOptions.TCPClientSocketOptions - Class in io.ktor.network.sockets
-
Represents TCP client socket options
- SocketOptions.UDPSocketOptions - Class in io.ktor.network.sockets
-
Represents UDP socket options
- SocketsKt - Class in io.ktor.network.sockets
-