11 lines
203 B
Go
11 lines
203 B
Go
package zciyon
|
|
|
|
type CiyTCPServer interface {
|
|
Listen(address string) error
|
|
Accept() (CiyTCPClient, error)
|
|
Watch(fn func(byt []byte))
|
|
Send(byt []byte) error
|
|
Close() error
|
|
SetDeadline(t int) error
|
|
}
|