2017-11-02 18:08:18 +03:00
|
|
|
// 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.
|
|
|
|
|
2017-10-28 22:23:13 +03:00
|
|
|
// +build !darwin,!netbsd,!freebsd,!openbsd,!dragonfly,!linux
|
2017-10-26 23:43:31 +03:00
|
|
|
|
2017-10-29 00:58:59 +03:00
|
|
|
package evio
|
2017-10-26 23:43:31 +03:00
|
|
|
|
|
|
|
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)
|
|
|
|
}
|