mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-22 13:56:30 +03:00
Notify switch idle
This commit is contained in:
@@ -115,6 +115,10 @@ func (c *Core) AWDLCreateInterface(boxPubKey string, sigPubKey string, name stri
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Core) AWDLShutdownInterface(name string) {
|
||||
c.awdl.shutdown(name)
|
||||
}
|
||||
|
||||
func (c *Core) AWDLRecvPacket(identity string) ([]byte, error) {
|
||||
if intf := c.awdl.getInterface(identity); intf != nil {
|
||||
return <-intf.recv, nil
|
||||
|
||||
Reference in New Issue
Block a user