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()
|
|
|
|
}
|
2017-11-14 21:43:15 +03:00
|
|
|
if ln.pconn != nil {
|
|
|
|
ln.pconn.Close()
|
|
|
|
}
|
2017-10-26 23:43:31 +03:00
|
|
|
if ln.network == "unix" {
|
|
|
|
os.RemoveAll(ln.addr)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-19 22:47:53 +03:00
|
|
|
func (ln *listener) system(opts map[string]string) error {
|
2017-10-26 23:43:31 +03:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func serve(events Events, lns []*listener) error {
|
2017-11-13 15:44:48 +03:00
|
|
|
return servenet(events, lns)
|
2017-10-26 23:43:31 +03:00
|
|
|
}
|