Allenxuxu / gev

🚀Gev is a lightweight, fast non-blocking TCP network library / websocket server based on Reactor mode. Support custom protocols to quickly and easily build high-performance servers.
MIT License
1.72k stars 193 forks source link

windows的支持 #7

Open yangjuncode opened 4 years ago

yangjuncode commented 4 years ago

不期望在windows上有什么好的性能,但是对于演示或者小连接量的系统,还是有作用的

或许可以像evio一样基于std库实现,接口统一就好

Allenxuxu commented 4 years ago

增加 windows 支持也可以方便调试。 我会将 windows的支持 列入计划中,如果你感兴趣,可以PR。

MrChang0 commented 4 years ago

WSL 可以解决

changshoumeng commented 4 years ago

..\github.com\Allenxuxu\gev\eventloop\eventloop.go:18:11: undefined: poller.Poller

golang.org/x/sys/windows

x\sys\windows\dll_windows.go:21:6: missing function body x\sys\windows\dll_windows.go:24:6: missing function body

建议. 就使用select模式 实现event loop;使得在windows下可以开发代码、调试就好了;然后在Linux下编译时,自动切换到epoll。

Allenxuxu commented 4 years ago

@changshoumeng 非常感谢提供建议! 大佬感兴趣的话 ,可以直接 PR。

lebronyang1 commented 4 years ago

windows同样可以达到很好性能啊,iocp模型,之前使用过的iocp模型,写法类似proactor,一个线程监听接收连接,多个work读写

Allenxuxu commented 4 years ago

windows同样可以达到很好性能啊,iocp模型,之前使用过的iocp模型,写法类似proactor,一个线程监听接收连接,多个work读写

大佬,感兴趣的话,直接PR吧。😀

yiippee commented 4 years ago

WSL 可以解决

请问在wsl下运行goland无法debug,有遇到过吗?dlv好像不支持wsl下debug,有什么好的debug方法吗?谢谢。

1514louluo commented 3 years ago

很期待windows的支持

srdgame commented 2 years ago

什么时候能有windows支持?

Allenxuxu commented 2 years ago

什么时候能有windows支持?

目前有计划在用标准库 net 支持一下 windows 的开发使用

maxbad commented 1 year ago

期待支持windows呀

maxbad commented 1 year ago

大佬,现在支持windows了, 可以打个tag吗?

Allenxuxu commented 1 year ago

大佬,现在支持windows了, 可以打个tag吗?

https://github.com/Allenxuxu/gev/releases/tag/v0.5.0