A Task[A] which has access to an Socket, for reading/writing from
some network resource.
Read up to numBytes from the peer.
Read up to numBytes from the peer.
If timeout is provided and no data arrives within the specified duration, the returned
Process fails with a java.nio.channels.InterruptedByTimeoutException.
If allowPeerClosed is true, abrupt termination by the peer is converted to None
rather than being raised as an exception.
Process that connects to remote server (TCP) and runs the stream ouput.
Process that connects to remote server (TCP) and runs the stream ouput.
Address of remote server
whether address has to be reused (@see java.net.StandardSocketOptions.SO_REUSEADDR)
size of send buffer (@see java.net.StandardSocketOptions.SO_SNDBUF)
size of receive buffer (@see java.net.StandardSocketOptions.SO_RCVBUF)
whether keep-alive on tcp is used (@see java.net.StandardSocketOptions.SO_KEEPALIVE)
whether tcp no-delay flag is set (@see java.net.StandardSocketOptions.TCP_NODELAY)
Indicate to the peer that we are done writing.
Evaluate and emit the result of t.
Evaluate and ignore the result of t.
Defined as tcp.writes(chunks,timeout,allowPeerClosed) onComplete eof.
Like scalaz.stream.tcp.lastWrites, but ignores the output.
Lift a regular Process to operate in the context of a Connection.
Read exactly numBytes from the peer in a single chunk.
Read exactly numBytes from the peer in a single chunk.
If timeout is provided and no data arrives within the specified duration, the returned
Process fails with a java.nio.channels.InterruptedByTimeoutException.
Read a stream from the peer in chunk sizes up to maxChunkBytes bytes.
Returns a single-element stream containing the remote address of the peer.
Process that binds to supplied address and handles incoming TCP connections using the specified handler.
Process that binds to supplied address and handles incoming TCP connections using the specified handler. The stream of handler results is returned, along with any errors. The outer stream scopes the lifetime of the server socket. When the returned process terminates, all open connections will terminate as well.
address to which this process has to be bound
the number of requests that may be processed simultaneously, must be positive
whether address has to be reused (@see java.net.StandardSocketOptions.SO_REUSEADDR)
size of receive buffer (@see java.net.StandardSocketOptions.SO_RCVBUF)
Write bytes to the peer.
Write bytes to the peer. If timeout is provided
and the operation does not complete in the specified duration,
the returned Process fails with a java.nio.channels.InterruptedByTimeoutException.
Like scalaz.stream.tcp.write, but ignores the output.
Write a stream of chunks to the peer.
Write a stream of chunks to the peer. Emits a single Unit value for
each chunk written.
Like scalaz.stream.tcp.writes, but ignores the output.