gnet icon indicating copy to clipboard operation
gnet copied to clipboard

gnet v2 supports Windows

Open amos-lsl opened this issue 4 years ago • 11 comments

image

amos-lsl avatar Mar 09 '22 09:03 amos-lsl

看起来像是环境配置的问题,go test 能跑吗?

panjf2000 avatar Mar 09 '22 09:03 panjf2000

不行,我用的ide是vscode image

amos-lsl avatar Mar 09 '22 10:03 amos-lsl

gnet包中,定义了两个eventloop struct ?? image image

amos-lsl avatar Mar 09 '22 10:03 amos-lsl

你是什么操作系统?

panjf2000 avatar Mar 12 '22 08:03 panjf2000

应该是windows系统下的开发

bwb0101 avatar Mar 16 '22 06:03 bwb0101

一样一样的问题, Windows 7、vscode下,编译github.com/gnet-io/gnet-examples下的示例程序,提示: 图片

bagualing avatar Apr 06 '22 07:04 bagualing

2.0现在不支持win,我是win下用v1,linux下用v2 这样分开的,搞得挺麻烦

bwb0101 avatar Apr 06 '22 08:04 bwb0101

v2好像不支持win,运行报错一样的问题。大佬有解决方法吗。 image

gcggcg avatar Apr 20 '22 12:04 gcggcg

github.com\panjf2000\gnet\[email protected]\engine.go

//go:build linux || freebsd || dragonfly || darwin // +build linux freebsd dragonfly darwin

To be notice "this is the problem" :) i'm not expert... by i'll read about it https://www.sobyte.net/post/2021-09/golang-netpoll/ and understand why...

josejuanmontiel avatar Apr 28 '22 14:04 josejuanmontiel

oh 💩 i just noticed this is not working on windows. just wasted hour of my time setting up a new project. @panjf2000 you should at least implement workable windows version for basic development. it does not have to provide the same performance, obviously, but it should at least work.

go has built-in epoll implementation for windows so writing a simple wrapper for github.com/panjf2000/gnet/v2/internal/netpoll should not be a problem.

just fyi, windows still dominates not just the internet but developers as well(SO 2021 survey)

obrázok

ivanjaros avatar Aug 26 '22 14:08 ivanjaros

I noticed entire code base is windows-free so it's not just the netpoll library. This really sucks.

ivanjaros avatar Aug 29 '22 10:08 ivanjaros

围观一下, 期待早日支持windows

maxbad avatar Sep 21 '22 04:09 maxbad

2023新期待支持一下windows

maxbad avatar Feb 01 '23 02:02 maxbad

+1 windows support for V2

gedw99 avatar Mar 14 '23 11:03 gedw99

I'm waiting

trungdlp avatar Apr 12 '23 17:04 trungdlp