16 lines
289 B
Go
16 lines
289 B
Go
package zciyon
|
|
|
|
import "net"
|
|
|
|
type CiyUDPClient interface {
|
|
Dial(address string) error
|
|
Watch(fn func(byt []byte))
|
|
Send(byt []byte) error
|
|
Close() error
|
|
SetDeadline(t int) error
|
|
SetReadDeadline(t int) error
|
|
SetWriteDeadline(t int) error
|
|
LocalAddr() net.Addr
|
|
RemoteAddr() net.Addr
|
|
}
|