Skip to content

Commit

Permalink
add a Server.ServeQUICConn method (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored Nov 22, 2022
1 parent 3651182 commit 9631328
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ func (s *Server) Serve(conn net.PacketConn) error {
return s.H3.Serve(conn)
}

// ServeQUICConn serves a single QUIC connection.
func (s *Server) ServeQUICConn(conn quic.Connection) error {
if err := s.initialize(); err != nil {
return err
}
return s.H3.ServeQUICConn(conn)
}

func (s *Server) ListenAndServe() error {
if err := s.initialize(); err != nil {
return err
Expand Down

0 comments on commit 9631328

Please sign in to comment.