mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
NetListener::local_address
This commit is contained in:
@@ -17,6 +17,10 @@ impl NetListener {
|
||||
Ok(Self { listener })
|
||||
}
|
||||
|
||||
pub fn local_address(&self) -> io::Result<SocketAddr> {
|
||||
self.listener.local_addr()
|
||||
}
|
||||
|
||||
pub fn accept_connections(&self) -> Vec<NetStream> {
|
||||
let mut streams = Vec::new();
|
||||
while let Ok(result) = self.listener.accept() {
|
||||
|
||||
Reference in New Issue
Block a user