INNER CODE UNIT · Go
runICETesterListener
l7mp/stunner · cmd/icetester/main.go:118
func runICETesterListener(ctx context.Context, addr string, config whipconn.Config) error {
log.Infof("creating WHIP server listener with config %#v", config)
l, err := whipconn.NewListener(addr, config, loggerFactory)
if err != nil {
return fmt.Errorf("could not create WHIP server listener: %s", err.Error())
}
log.Debug("creating echo service")
go func() {
for {
conn, err := l.Accept()
if err != nil {
return
}
log.Debugf("accepting WHIP server connection with resource ID: %s",
conn.(*whipconn.ListenerConn).ResourceUrl)