public class TcpSocketBuilder implements Configurable<T,O>
TCP socket builder
Configurable.DefaultImpls| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
bind(java.lang.String hostname,
int port,
kotlin.jvm.functions.Function1<? super io.ktor.network.sockets.SocketOptions.AcceptorOptions,kotlin.Unit> configure)
Bind server socket at port to listen to hostname
|
ServerSocket |
bind(java.net.SocketAddress localAddress,
kotlin.jvm.functions.Function1<? super io.ktor.network.sockets.SocketOptions.AcceptorOptions,kotlin.Unit> configure)
Bind server socket to listen to localAddress
|
java.lang.Object |
connect(java.lang.String hostname,
int port,
kotlin.jvm.functions.Function1<? super io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions,kotlin.Unit> configure,
kotlin.coroutines.experimental.Continuation<? super io.ktor.network.sockets.Socket> p)
Connect to hostname and port
|
java.lang.Object |
connect(java.net.SocketAddress remoteAddress,
kotlin.jvm.functions.Function1<? super io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions,kotlin.Unit> configure,
kotlin.coroutines.experimental.Continuation<? super io.ktor.network.sockets.Socket> p)
Connect to remoteAddress
|
SocketOptions |
getOptions()
Current socket options
|
void |
setOptions(SocketOptions p)
Current socket options
|
configure, getOptions, setOptionspublic java.lang.Object connect(java.lang.String hostname,
int port,
kotlin.jvm.functions.Function1<? super io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions,kotlin.Unit> configure,
kotlin.coroutines.experimental.Continuation<? super io.ktor.network.sockets.Socket> p)
Connect to hostname and port
public ServerSocket bind(java.lang.String hostname, int port, kotlin.jvm.functions.Function1<? super io.ktor.network.sockets.SocketOptions.AcceptorOptions,kotlin.Unit> configure)
Bind server socket at port to listen to hostname
public java.lang.Object connect(java.net.SocketAddress remoteAddress,
kotlin.jvm.functions.Function1<? super io.ktor.network.sockets.SocketOptions.TCPClientSocketOptions,kotlin.Unit> configure,
kotlin.coroutines.experimental.Continuation<? super io.ktor.network.sockets.Socket> p)
Connect to remoteAddress
public ServerSocket bind(java.net.SocketAddress localAddress, kotlin.jvm.functions.Function1<? super io.ktor.network.sockets.SocketOptions.AcceptorOptions,kotlin.Unit> configure)
Bind server socket to listen to localAddress
public SocketOptions getOptions()
Current socket options
public void setOptions(SocketOptions p)
Current socket options
p - Current socket options