IPWorks P2P 2020 Kotlin Edition

Questions / Feedback?

Connect Method

Connects to a remote host.

Syntax

public fun connect(host: String?, port: Int)

Remarks

This method connects to a remote host. Calling this method is equivalent to setting the RemoteHost property to Host, setting RemotePort to Port, and then setting the Connected property to True.

Example (Connecting)


RUDPClient.Connect("MyHostNameOrIP", 777)

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks P2P 2020 Kotlin Edition - Version 20.0 [Build 7941]