connectToHost(_:port:)

    Calling this method connects this UDP peer to the given host/port pair. UDP is in reality connectionless, so this option only means that incoming packets from different addresses are automatically discarded, and that outgoing packets are always sent to the connected address (future calls to setDestAddress(host:port:) are not allowed). This method does not send any data to the remote peer, to do that, use putVar(_:fullObjects:) or putPacket(buffer:) as usual. See also UDPServer.

    PacketPeerUDP.swift:138
    final func connectToHost(_ host: String, port: Int32) -> GodotError

    Other members in extension

    Type members

    Instance members