NetSocketImpl

class NetSocketImpl : NetSocket, CoroutineScope

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override var listener: NetSocket.Listener?

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

Link copied to clipboard
open override val queueBytesOut: AtomicLong

The queueBytesOut indicates statistics of total current queueing bytes.

Link copied to clipboard
open override var timeout: Int

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

Link copied to clipboard
open override val totalBytesIn: AtomicLong

The totalBytesIn indicates statistics of total incoming bytes.

Link copied to clipboard
open override val totalBytesOut: AtomicLong

The totalBytesOut indicates statistics of total outgoing bytes.

Functions

Link copied to clipboard
open override fun close(disconnected: Boolean)

Closes a two-way connection to an application server.

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

Creates a two-way connection to an application server.

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

Creates a ByteBuffer for memory management.

Link copied to clipboard
open override fun doOutput(buffer: ByteBuffer)

Do output a butter to an application server.