forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_packetpeer
reduz edited this page Nov 14, 2014
·
10 revisions
####Inherits: Reference ####Category: Core
Abstraction and base class for packet-based protocols.
- void get_var ( ) const
- int put_var ( var var )
- int get_available_packet_count ( ) const
PacketPeer is an abstration and base class for packet-based protocols (such as UDP). It provides an API for sending and receiving packets both as raw data or variables. This makes it easy to transfer data over a protocol, without having to encode data as low level bytes or having to worry about network ordering.