Skip to content

Please implement an API like func (srv *Server) Serve(c net.PacketConn) error #7

@jannson

Description

@jannson

Please add an new api in server.go
The code like below:

func (srv *Server) Serve(c net.PacketConn) error {
	srv.addConn(c)
	defer srv.removeConn(c)
	return srv.agent.ServePacket(c)
}

I want to add another net.PacketConn implement not using net.ListenPacket, and I cann't find any api to support.

Thanks for you great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions