Link Search Menu Expand Document

//reikai-core/io.github.kerelape.reikai.io.network/TcpEndpoint

TcpEndpoint

[JVM]
class TcpEndpoint(address: Entity, port: Entity) : Endpoint

Socket endpoint.

Since

0.0.0

Constructors

   
TcpEndpoint [JVM]
fun TcpEndpoint(address: Entity, port: Entity)

Functions

Name Summary
close [JVM]
open suspend override fun close(): Entity
Does nothing.
dataize [JVM]
open suspend override fun dataize(): ByteArray
listen [JVM]
open suspend override fun listen(): Source
Start listening on the endpoint.
open [JVM]
open suspend override fun open(): Channel
Connect to the endpoint.