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) InitOutConnPool()
- func (s *UDP) InitService() (err error)
- func (s *UDP) OutToTCP(packet []byte, localAddr, srcAddr *net.UDPAddr) (err error)
- func (s *UDP) OutToUDP(packet []byte, localAddr, srcAddr *net.UDPAddr) (err error)
- func (s *UDP) Start(args interface{}, log *logger.Logger) (err error)
- func (s *UDP) StopService()
- type UDPArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UDP ¶
type UDP struct {
// contains filtered or unexported fields
}
func (*UDP) InitOutConnPool ¶
func (s *UDP) InitOutConnPool()
func (*UDP) InitService ¶
func (*UDP) StopService ¶
func (s *UDP) StopService()
Click to show internal directories.
Click to hide internal directories.