Access NSLog through Cgo for iOS NetworkExtension logging

This commit is contained in:
Neil Alexander 2019-01-05 21:59:07 +00:00
parent 6bbd8c1b30
commit 87362a21e2
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
4 changed files with 32 additions and 3 deletions

View file

@ -109,11 +109,12 @@ func (ai *awdlInterface) handler() {
timer.Reset(timerInterval)
select {
case _ = <-timer.C:
send([]byte{'H', 'E', 'L', 'L', 'O'})
send([]byte{})
case p := <-ai.peer.linkOut:
send(p)
continue
case r := <-ai.fromAWDL:
//_ = append(util.GetBytes(), r...)
ai.peer.handlePacket(r)
ai.awdl.core.switchTable.idleIn <- ai.peer.port
case <-ai.shutdown: