@@ -84,7 +84,13 @@ impl SctpStream {
84
84
85
85
/// Send bytes on the specified SCTP stream. On success, returns the
86
86
/// quantity of bytes read
87
- pub fn sendmsg ( & self , msg : & [ u8 ] , ppid : u32 , stream : u16 ) -> Result < usize > {
87
+ pub fn sendmsg ( & self , msg : & [ u8 ] , stream : u16 ) -> Result < usize > {
88
+ return self . 0 . sendmsg :: < SocketAddr > ( msg, None , 0 , stream, 0 ) ;
89
+ }
90
+
91
+ /// Send bytes on the specified SCTP stream. On success, returns the
92
+ /// quantity of bytes read
93
+ pub fn sendmsg_ppid ( & self , msg : & [ u8 ] , ppid : u32 , stream : u16 ) -> Result < usize > {
88
94
return self . 0 . sendmsg :: < SocketAddr > ( msg, None , ppid, stream, 0 ) ;
89
95
}
90
96
@@ -233,8 +239,8 @@ impl SctpEndpoint {
233
239
234
240
/// Send data in Sctp style, to the provided address on the stream `stream`.
235
241
/// On success, returns the quantity on bytes sent
236
- pub fn send_to < A : ToSocketAddrs > ( & self , msg : & mut [ u8 ] , address : A , ppid : u32 , stream : u16 ) -> Result < usize > {
237
- return self . 0 . sendmsg ( msg, Some ( address) , ppid , stream, 0 ) ;
242
+ pub fn send_to < A : ToSocketAddrs > ( & self , msg : & mut [ u8 ] , address : A , stream : u16 ) -> Result < usize > {
243
+ return self . 0 . sendmsg ( msg, Some ( address) , 0 , stream, 0 ) ;
238
244
}
239
245
240
246
/// Get local socket addresses to which this socket is bound
0 commit comments