SokDoc

sok / Sok.Socket.TCP / TCPServerSocket / accept

accept

suspend fun accept(): TCPClientSocket (source)

Accept a client socket. The method will suspend until there is a client to accept

Exceptions

NormalCloseException -

SocketClosedException -

Return accepted socket