support andoird

This commit is contained in:
hhd
2022-11-03 11:07:32 +08:00
parent 2af77668fe
commit af82fc6e36
90 changed files with 1674 additions and 334 deletions
+16
View File
@@ -0,0 +1,16 @@
package openp2p
import (
"time"
)
type underlay interface {
ReadBuffer() (*openP2PHeader, []byte, error)
WriteBytes(uint16, uint16, []byte) error
WriteBuffer([]byte) error
WriteMessage(uint16, uint16, interface{}) error
Close() error
SetReadDeadline(t time.Time) error
SetWriteDeadline(t time.Time) error
Protocol() string
}