mirror of https://github.com/tidwall/evio.git
27 lines
514 B
Go
27 lines
514 B
Go
// Copyright 2017 Joshua J Baker. All rights reserved.
|
|
// Use of this source code is governed by an MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build !darwin,!netbsd,!freebsd,!openbsd,!dragonfly,!linux
|
|
|
|
package evio
|
|
|
|
import "os"
|
|
|
|
func (ln *listener) close() {
|
|
if ln.ln != nil {
|
|
ln.ln.Close()
|
|
}
|
|
if ln.network == "unix" {
|
|
os.RemoveAll(ln.addr)
|
|
}
|
|
}
|
|
|
|
func (ln *listener) system() error {
|
|
return nil
|
|
}
|
|
|
|
func serve(events Events, lns []*listener) error {
|
|
return servestdlib(events, lns)
|
|
}
|