Documentation ¶
Index ¶
- func NewUDP() services.Service
- type UDP
- func (s *UDP) CheckArgs() (err error)
- func (s *UDP) Clean()
- func (s *UDP) GetConn(connKey string) (conn net.Conn, isNew bool, err error)
- func (s *UDP) GetParentConn() (conn net.Conn, err error)
- func (s *UDP) InitService() (err error)
- func (s *UDP) OutToTCP(data []byte, localAddr, srcAddr *net.UDPAddr) (err error)
- func (s *UDP) OutToUDP(packet []byte, localAddr, srcAddr *net.UDPAddr)
- func (s *UDP) OutToUDPGCDeamon()
- func (s *UDP) Start(args interface{}, log *logger.Logger) (err error)
- func (s *UDP) StopService()
- func (s *UDP) UDPGCDeamon()
- func (s *UDP) UDPRevecive(key string)
- func (s *UDP) UDPSend(data []byte, localAddr, srcAddr *net.UDPAddr)
- type UDPArgs
- type UDPConnItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UDP ¶
type UDP struct {
// contains filtered or unexported fields
}
func (*UDP) InitService ¶
func (*UDP) OutToUDPGCDeamon ¶
func (s *UDP) OutToUDPGCDeamon()
func (*UDP) StopService ¶
func (s *UDP) StopService()
func (*UDP) UDPGCDeamon ¶
func (s *UDP) UDPGCDeamon()
func (*UDP) UDPRevecive ¶
type UDPConnItem ¶
type UDPConnItem struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.