From 541a1226cd9fe136ef218d74a92a1d3ac6a76fab Mon Sep 17 00:00:00 2001
From: J08nY
Date: Wed, 15 Jun 2016 22:54:21 +0200
Subject: Classref: added PacketPeer*
---
doc/base/classes.xml | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
(limited to 'doc/base/classes.xml')
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index cda9319b5..63be9ca41 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -23478,7 +23478,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+
+
+ Get a Variant.
@@ -23487,12 +23490,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
+ Send a Variant as a packet.
+ Get a raw packet.
@@ -23501,18 +23506,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.
@@ -23540,8 +23548,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.
@@ -23552,40 +23562,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]).
@@ -23596,6 +23613,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.
@@ -36786,7 +36804,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.
@@ -36881,7 +36899,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.
--
cgit v1.2.3-70-g09d2