1 Star 0 Fork 22

guoshuai418@163.com/gnet

forked from Gitee 极速下载/gnet 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
server_stub.go 667 Bytes
一键复制 编辑 原始数据 按行查看 历史
andypan 提交于 2019-11-12 20:58 . Support Windows with net stdlib, fix #19
// Copyright 2019 Andy Pan. All rights reserved.
// Copyright 2018 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,!windows
package gnet
import (
"errors"
"os"
)
func (ln *listener) close() {
if ln.ln != nil {
ln.ln.Close()
}
if ln.pconn != nil {
ln.pconn.Close()
}
if ln.network == "unix" {
os.RemoveAll(ln.addr)
}
}
func (ln *listener) system() error {
return nil
}
func serve(eventHandler EventHandler, listeners []*listener) error {
return errors.New("Unsupported platform in gnet")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/webboyvc/gnet.git
git@gitee.com:webboyvc/gnet.git
webboyvc
gnet
gnet
master

搜索帮助