@@ -98,33 +98,51 @@ impl UdpSocket {
98
98
}
99
99
100
100
/// Sets the broadcast flag on or off.
101
+ #[ deprecated( since = "1.3.0" ,
102
+ reason = "available through the `net2` crate on crates.io" ) ]
103
+ #[ unstable( feature = "udp_extras" , reason = "available externally" ) ]
101
104
pub fn set_broadcast ( & self , on : bool ) -> io:: Result < ( ) > {
102
105
self . 0 . set_broadcast ( on)
103
106
}
104
107
105
108
/// Sets the multicast loop flag to the specified value.
106
109
///
107
110
/// This lets multicast packets loop back to local sockets (if enabled)
111
+ #[ deprecated( since = "1.3.0" ,
112
+ reason = "available through the `net2` crate on crates.io" ) ]
113
+ #[ unstable( feature = "udp_extras" , reason = "available externally" ) ]
108
114
pub fn set_multicast_loop ( & self , on : bool ) -> io:: Result < ( ) > {
109
115
self . 0 . set_multicast_loop ( on)
110
116
}
111
117
112
118
/// Joins a multicast IP address (becomes a member of it).
119
+ #[ deprecated( since = "1.3.0" ,
120
+ reason = "available through the `net2` crate on crates.io" ) ]
121
+ #[ unstable( feature = "udp_extras" , reason = "available externally" ) ]
113
122
pub fn join_multicast ( & self , multi : & IpAddr ) -> io:: Result < ( ) > {
114
123
self . 0 . join_multicast ( multi)
115
124
}
116
125
117
126
/// Leaves a multicast IP address (drops membership from it).
127
+ #[ deprecated( since = "1.3.0" ,
128
+ reason = "available through the `net2` crate on crates.io" ) ]
129
+ #[ unstable( feature = "udp_extras" , reason = "available externally" ) ]
118
130
pub fn leave_multicast ( & self , multi : & IpAddr ) -> io:: Result < ( ) > {
119
131
self . 0 . leave_multicast ( multi)
120
132
}
121
133
122
134
/// Sets the multicast TTL.
135
+ #[ deprecated( since = "1.3.0" ,
136
+ reason = "available through the `net2` crate on crates.io" ) ]
137
+ #[ unstable( feature = "udp_extras" , reason = "available externally" ) ]
123
138
pub fn set_multicast_time_to_live ( & self , ttl : i32 ) -> io:: Result < ( ) > {
124
139
self . 0 . multicast_time_to_live ( ttl)
125
140
}
126
141
127
142
/// Sets this socket's TTL.
143
+ #[ deprecated( since = "1.3.0" ,
144
+ reason = "available through the `net2` crate on crates.io" ) ]
145
+ #[ unstable( feature = "udp_extras" , reason = "available externally" ) ]
128
146
pub fn set_time_to_live ( & self , ttl : i32 ) -> io:: Result < ( ) > {
129
147
self . 0 . time_to_live ( ttl)
130
148
}
0 commit comments