NetSocket

interface NetSocket

The NetSocket interface establish a two-way TCP/IP socket connections.

Types

Link copied to clipboard
interface Listener

The Listener interface is the primary method for handling events.

Properties

Link copied to clipboard

Specifies the listener indicates the NetSocket.Listener are currently being evaluated.

Link copied to clipboard

The queueBytesOut indicates statistics of total current queueing bytes.

Link copied to clipboard
abstract var timeout: Int

Specifies the timeout indicates time to wait for TCP/IP Handshake done.

Link copied to clipboard
abstract val totalBytesIn: AtomicLong

The totalBytesIn indicates statistics of total incoming bytes.

Link copied to clipboard

The totalBytesOut indicates statistics of total outgoing bytes.

Functions

Link copied to clipboard
abstract fun close(disconnected: Boolean)

Closes a two-way connection to an application server.

Link copied to clipboard
abstract fun connect(dstName: String, dstPort: Int, isSecure: Boolean)

Creates a two-way connection to an application server.

Link copied to clipboard
abstract fun createByteBuffer(capacity: Int): ByteBuffer

Creates a ByteBuffer for memory management.

Link copied to clipboard
abstract fun doOutput(buffer: ByteBuffer)

Do output a butter to an application server.