Documentation ¶
Index ¶
- func StartNtpServer(port int)
- type NtpManager
- func (n *NtpManager) BeginWork()
- func (n *NtpManager) Init()
- func (n *NtpManager) OnForeseeMessage(msg message.BaseMessage) (done bool)
- func (n *NtpManager) OnForeseeResponse(rsp message.BaseResponse) (done bool)
- func (n *NtpManager) OnProcessMessage(msg message.BaseMessage) (rsp message.BaseResponse, err error)
- func (n *NtpManager) OnProcessResponse(rsp message.BaseResponse)
- func (n *NtpManager) StopWork()
- func (n *NtpManager) Uninit()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NtpManager ¶
type NtpManager struct { core.MessageList // 消息列表 common.NTPInfo // contains filtered or unexported fields }
func (*NtpManager) OnForeseeMessage ¶
func (n *NtpManager) OnForeseeMessage(msg message.BaseMessage) (done bool)
偷窥消息
func (*NtpManager) OnForeseeResponse ¶
func (n *NtpManager) OnForeseeResponse(rsp message.BaseResponse) (done bool)
偷窥消息的回应
func (*NtpManager) OnProcessMessage ¶
func (n *NtpManager) OnProcessMessage(msg message.BaseMessage) (rsp message.BaseResponse, err error)
处理消息
func (*NtpManager) OnProcessResponse ¶
func (n *NtpManager) OnProcessResponse(rsp message.BaseResponse)
处理消息的回应
Click to show internal directories.
Click to hide internal directories.