mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 19:33:23 +00:00
typo: Some typo in net/socket/mod.rs
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
3123222995
commit
75e9382d57
@ -29,7 +29,7 @@ pub trait Socket: FileLike + Send + Sync {
|
|||||||
|
|
||||||
/// Listen for connections on a socket
|
/// Listen for connections on a socket
|
||||||
fn listen(&self, backlog: usize) -> Result<()> {
|
fn listen(&self, backlog: usize) -> Result<()> {
|
||||||
return_errno_with_message!(Errno::EOPNOTSUPP, "connect() is not supported");
|
return_errno_with_message!(Errno::EOPNOTSUPP, "listen() is not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Accept a connection on a socket
|
/// Accept a connection on a socket
|
||||||
@ -75,6 +75,6 @@ pub trait Socket: FileLike + Send + Sync {
|
|||||||
remote: Option<SocketAddr>,
|
remote: Option<SocketAddr>,
|
||||||
flags: SendRecvFlags,
|
flags: SendRecvFlags,
|
||||||
) -> Result<usize> {
|
) -> Result<usize> {
|
||||||
return_errno_with_message!(Errno::EOPNOTSUPP, "recvfrom() is not supported");
|
return_errno_with_message!(Errno::EOPNOTSUPP, "sendto() is not supported");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user