mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-22 04:56:49 +08:00
提交origin2.0版本
This commit is contained in:
14
network/conn.go
Normal file
14
network/conn.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package network
|
||||
|
||||
import (
|
||||
"net"
|
||||
)
|
||||
|
||||
type Conn interface {
|
||||
ReadMsg() ([]byte, error)
|
||||
WriteMsg(args ...[]byte) error
|
||||
LocalAddr() net.Addr
|
||||
RemoteAddr() net.Addr
|
||||
Close()
|
||||
Destroy()
|
||||
}
|
||||
Reference in New Issue
Block a user