udp_server.go 634 B

1234567891011121314151617181920212223242526272829
  1. package main
  2. import (
  3. "errors"
  4. "git.swzry.com/zry/zry-go-program-framework/core"
  5. )
  6. var _ core.ISubService = (*UDPServerSubSvc)(nil)
  7. type UDPServerSubSvc struct {
  8. }
  9. func NewUDPServerSubSvc() *UDPServerSubSvc {
  10. s := &UDPServerSubSvc{}
  11. return s
  12. }
  13. func (T UDPServerSubSvc) Prepare(ctx *core.SubServiceContext) error {
  14. ctx.Error("currently not support udp")
  15. return errors.New("currently not support udp")
  16. }
  17. func (T UDPServerSubSvc) Run(ctx *core.SubServiceContext) error {
  18. ctx.Error("currently not support udp")
  19. return errors.New("currently not support udp")
  20. }
  21. func (T UDPServerSubSvc) Stop(ctx *core.SubServiceContext) {
  22. }