turn_types/
message.rs

1// Copyright (C) 2025 Matthew Waters <matthew@centricular.com>
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9//! Module for TURN message types in addition to thise specified by STUN.
10
11/// The value of the Allocate message type.  Can be used in either a request or an indication
12/// message.
13pub const ALLOCATE: u16 = 0x0003;
14
15/// The value of the Refresh message type.  Can be used in either a request or an indication
16/// message.
17pub const REFRESH: u16 = 0x0004;
18
19/// The value of the Send message type.  Can only be used in an indication message.
20pub const SEND: u16 = 0x0006;
21
22/// The value of the Data message type.  Can only be used in an indication message.
23pub const DATA: u16 = 0x0007;
24
25/// The value of the CreatePermission message type.  Can be used in either a request or an indication
26/// message.
27pub const CREATE_PERMISSION: u16 = 0x0008;
28
29/// The value of the ChannelBind message type.  Can be used in either a request or an indication
30/// message.
31pub const CHANNEL_BIND: u16 = 0x0009;