From f5d3d9cc5fd7cf320c39bbd0f2a8d233125a8208 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 15 Jun 2016 22:54:21 +0200 Subject: [PATCH] Classref: added PacketPeer* (cherry picked from commit 541a1226cd9fe136ef218d74a92a1d3ac6a76fab) --- doc/base/classes.xml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index ab25c18b06b..dd32bbf3d37 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -21709,7 +21709,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + Get a Variant. @@ -21718,12 +21721,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Send a Variant as a packet. + Get a raw packet. @@ -21732,18 +21737,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Send a raw packet. + Return the error state of the last packet received (via [method get_packet] and [method get_var]). + Return the number of packets currently available in the ring-buffer. @@ -21771,8 +21779,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + UDP packet peer. + UDP packet peer. Can be used to send raw UDP packets as well as [Variant]s. @@ -21783,40 +21793,47 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Make this [PacketPeerUDP] listen on the "port" using a buffer size "recv_buf_size". Listens on all available adresses. + Close the UDP socket the [PacketPeerUDP] is currently listening on. + Wait for a packet to arrive on the listening port, see [method listen]. + Return whether this [PacketPeerUDP] is listening. + Return the IP of the remote peer that sent the last packet(that was received with [method get_packet] or [method get_var]). + Return the address of the remote peer(as a 32bit integer) that sent the last packet(that was received with [method get_packet] or [method get_var]). + Return the port of the remote peer that sent the last packet(that was received with [method get_packet] or [method get_var]). @@ -21827,6 +21844,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Set the destination address and port for sending packets and variables, a hostname will be resolved if valid. @@ -34630,7 +34648,7 @@ This method controls whether the position between two cached points is interpola - Put a variable into the stream. + Put a Variant into the stream. @@ -34725,7 +34743,7 @@ This method controls whether the position between two cached points is interpola - Get a variable from the stream. + Get a Variant from the stream.