package nio
- Source
- package.scala
- Alphabetic
- By Inheritance
- nio
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- lazy val DefaultAsynchronousChannelGroup: AsynchronousChannelGroup
-
def
connect(to: InetSocketAddress, reuseAddress: Boolean = true, sndBufferSize: Int = 256 * 1024, rcvBufferSize: Int = 256 * 1024, keepAlive: Boolean = false, noDelay: Boolean = false)(implicit AG: AsynchronousChannelGroup): Process[Task, Exchange[ByteVector, ByteVector]]
Process that connects to remote server (TCP) and provides one exchange representing connection to that server
Process that connects to remote server (TCP) and provides one exchange representing connection to that server
- to
Address of remote server
- reuseAddress
whether address has to be reused (@see java.net.StandardSocketOptions.SO_REUSEADDR)
- sndBufferSize
size of send buffer (@see java.net.StandardSocketOptions.SO_SNDBUF)
- rcvBufferSize
size of receive buffer (@see java.net.StandardSocketOptions.SO_RCVBUF)
- keepAlive
whether keep-alive on tcp is used (@see java.net.StandardSocketOptions.SO_KEEPALIVE)
- noDelay
whether tcp no-delay flag is set (@see java.net.StandardSocketOptions.TCP_NODELAY)
-
def
server(bind: InetSocketAddress, reuseAddress: Boolean = true, rcvBufferSize: Int = 256 * 1024)(implicit AG: AsynchronousChannelGroup): Process[Task, Process[Task, Exchange[ByteVector, ByteVector]]]
Process that binds to supplied address and provides accepted exchanges representing incoming connections (TCP) with remote clients When this process terminates all the incoming exchanges will terminate as well
Process that binds to supplied address and provides accepted exchanges representing incoming connections (TCP) with remote clients When this process terminates all the incoming exchanges will terminate as well
- bind
address to which this process has to be bound
- reuseAddress
whether address has to be reused (@see java.net.StandardSocketOptions.SO_REUSEADDR)
- rcvBufferSize
size of receive buffer (@see java.net.StandardSocketOptions.SO_RCVBUF)
- object file