Documentation
¶
Index ¶
- func GetFdFromTCPConn(c *net.TCPConn) int
- type EpollPoller
- func (ep *EpollPoller) ClosePoller() error
- func (ep *EpollPoller) Poll() error
- func (ep *EpollPoller) PollSize() int
- func (ep *EpollPoller) Register(fd int) error
- func (ep *EpollPoller) SetAutoClose(x bool)
- func (ep *EpollPoller) SetOnCloseCallback(f func(fd int))
- func (ep *EpollPoller) SetOnDataCallback(f func(fd int))
- type NetPoll
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFdFromTCPConn ¶
Types ¶
type EpollPoller ¶
type EpollPoller struct {
// contains filtered or unexported fields
}
func NewEpollPoller ¶
func NewEpollPoller(PollSize int) (ep *EpollPoller, err error)
func (*EpollPoller) ClosePoller ¶
func (ep *EpollPoller) ClosePoller() error
func (*EpollPoller) Poll ¶
func (ep *EpollPoller) Poll() error
func (*EpollPoller) PollSize ¶
func (ep *EpollPoller) PollSize() int
func (*EpollPoller) Register ¶
func (ep *EpollPoller) Register(fd int) error
func (*EpollPoller) SetAutoClose ¶
func (ep *EpollPoller) SetAutoClose(x bool)
func (*EpollPoller) SetOnCloseCallback ¶
func (ep *EpollPoller) SetOnCloseCallback(f func(fd int))
func (*EpollPoller) SetOnDataCallback ¶
func (ep *EpollPoller) SetOnDataCallback(f func(fd int))
Click to show internal directories.
Click to hide internal directories.