File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,13 @@ impl UdpSocket {
82
82
}
83
83
}
84
84
85
+ #[ allow( missing_doc) ]
86
+ #[ deprecated = "renamed to `recv_from`" ]
87
+ pub fn recvfrom ( & mut self , buf : & mut [ u8 ] )
88
+ -> IoResult < ( uint , SocketAddr ) > {
89
+ self . recv_from ( buf)
90
+ }
91
+
85
92
/// Sends data on the socket to the given address. Returns nothing on
86
93
/// success.
87
94
pub fn send_to ( & mut self , buf : & [ u8 ] , dst : SocketAddr ) -> IoResult < ( ) > {
@@ -91,6 +98,12 @@ impl UdpSocket {
91
98
} ) . map_err ( IoError :: from_rtio_error)
92
99
}
93
100
101
+ #[ allow( missing_doc) ]
102
+ #[ deprecated = "renamed to `send_to`" ]
103
+ pub fn sendto ( & mut self , buf : & [ u8 ] , dst : SocketAddr ) -> IoResult < ( ) > {
104
+ self . send_to ( buf, dst)
105
+ }
106
+
94
107
/// Creates a `UdpStream`, which allows use of the `Reader` and `Writer`
95
108
/// traits to receive and send data from the same address. This transfers
96
109
/// ownership of the socket to the stream.
You can’t perform that action at this time.
0 commit comments