Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelFuture ¶
type ChannelFuture struct {
Port string //监听端口
ReadTimeout time.Duration //服务端读取不到数据超时时间
BufferSize int //缓冲区大小
ChannelHandler channelHandler
}
通道
type ChannelInboundHandler ¶
通道入站处理程序
type Conn ¶
type Conn struct {
Conn *net.TCPConn
ByteBuffer []byte
Addr string
Ch channelHandler
H *ChannelInboundHandler
}
type TcpServer ¶
type TcpServer struct {
ChannelFutures []*ChannelFuture //socket通道切片
Address string //监听IP地址
}
func (*TcpServer) MakeTcpChannel ¶
Click to show internal directories.
Click to hide internal directories.