AsyncSocketChannelClient

final class AsyncSocketChannelClient(host: String, port: Int, bufferSize: Int)(implicit scheduler: Scheduler)

A TCP client composed of an async reader(AsyncSocketChannelObservable) and an async writer(AsyncSocketChannelConsumer) pair that both use the same underlying socket that is not released automatically.

In order to release the connection use close()

Value Params
bufferSize

the size of the buffer used for reading

host

hostname

port

TCP port number

Returns

an AsyncSocketChannelClient

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def close(): Task[Unit]

Closes this channel

Closes this channel

def init(): Unit
def stopReading(): Task[Unit]

Indicates that this channel will not read more data - end-of-stream indication

Indicates that this channel will not read more data - end-of-stream indication

def stopWriting(): Task[Unit]

Indicates that this channel will not write more data - end-of-stream indication

Indicates that this channel will not write more data - end-of-stream indication

Returns the underlying TCP client writer

Returns the underlying TCP client writer

Returns the underlying TCP client reader

Returns the underlying TCP client reader