Inherits: PacketPeer < Reference < Object
Inherited By: WebRTCDataChannelGDNative
WriteMode | write_mode | 1 |
void | close ( ) |
int | get_id ( ) const |
String | get_label ( ) const |
int | get_max_packet_life_time ( ) const |
int | get_max_retransmits ( ) const |
String | get_protocol ( ) const |
ChannelState | get_ready_state ( ) const |
bool | is_negotiated ( ) const |
bool | is_ordered ( ) const |
Error | poll ( ) |
bool | was_string_packet ( ) const |
enum WriteMode:
enum ChannelState:
Default | 1 |
Setter | set_write_mode(value) |
Getter | get_write_mode() |
The transfer mode to use when sending outgoing packet. Either text or binary.
Closes this data channel, notifying the other peer.
Returns the id assigned to this channel during creation (or auto-assigned during negotiation).
If the channel is not negotiated out-of-band the id will only be available after the connection is established (will return 65535
until then).
Returns the label assigned to this channel during creation.
Returns the maxPacketLifeTime
value assigned to this channel during creation.
Will be 65535
if not specified.
Returns the maxRetransmits
value assigned to this channel during creation.
Will be 65535
if not specified.
Returns the sub-protocol assigned to this channel during creation. An empty string if not specified.
Returns the current state of this channel, see ChannelState.
Returns true
if this channel was created with out-of-band configuration.
Returns true
if this channel was created with ordering enabled (default).
Reserved, but not used for now.
Returns true
if the last received packet was transferred as text. See write_mode.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_webrtcdatachannel.html