Lines Matching refs:dss
145 func (dss *dualStackServer) buildup(handler func(*dualStackServer, Listener)) error {
146 for i := range dss.lns {
148 handler(dss, dss.lns[i].Listener)
149 close(dss.lns[i].done)
155 func (dss *dualStackServer) teardownNetwork(network string) error {
156 dss.lnmu.Lock()
157 for i := range dss.lns {
158 if network == dss.lns[i].network && dss.lns[i].Listener != nil {
159 dss.lns[i].Listener.Close()
160 <-dss.lns[i].done
161 dss.lns[i].Listener = nil
164 dss.lnmu.Unlock()
168 func (dss *dualStackServer) teardown() error {
169 dss.lnmu.Lock()
170 for i := range dss.lns {
171 if dss.lns[i].Listener != nil {
172 dss.lns[i].Listener.Close()
173 <-dss.lns[i].done
176 dss.lns = dss.lns[:0]
177 dss.lnmu.Unlock()
178 dss.cmu.Lock()
179 for _, c := range dss.cs {
182 dss.cs = dss.cs[:0]
183 dss.cmu.Unlock()