Comments (6)
What is the issue?
from wepoll.
i add some code in master/test-multi-poll.c -> poll_thread();
when the svr-sock has event [EPOLLIN]
then WSARecvFrom(svr-sock), but return -1, recv nothing, why?
from wepoll.
then WSARecvFrom(svr-sock), but return -1, recv nothing, why?
What is the error you get after WSARecvFrom
returns -1?
from wepoll.
win x64 sdk: Windows Kits\10\Include\10.0.18362.0
errno = 0 or 112 [EINPROGRESS]
Got event (port 000000000000010C, thread 0000000000000114)
WSARecvFrom (port:000000000000010C, thread:0000000000000114, errno:112) -> [r:-1,c:0]={}
Got event (port 00000000000000D4, thread 00000000000000E0)
WSARecvFrom (port:00000000000000D4, thread:00000000000000E0, errno:0) -> [r:-1,c:0]={}
from wepoll.
I used wepoll to write a TCP server, tcp-svr EPOLLIN, then accept okey;
but when tcp-client EPOLLIN, WSARecv(clientfd), it also return - 1; I thought I did something wrong, and now I to use your demo for testing, and got the same return(-1) and errno(112).
EPOLLOUT hasn't been tested yet。
from wepoll.
errno = 0 or 112 [EINPROGRESS]
I'm sorry, please read the (win32) manual first.
Hint: errno
is not set after WSARecv
/WSARecvFrom
failure.
from wepoll.
Related Issues (20)
- Is it safe to remove all lock related codes ? HOT 3
- Windows XP support HOT 1
- epoll_ctl(epfd, EPOLL_CTL_ADD, m_fd, &ev) get an error HOT 2
- Add support for polling HANDLEs HOT 4
- Use NT reserve objects HOT 4
- epoll_ctl: Access Denied HOT 2
- Proxifier CI is borked HOT 1
- Custom build command for wepoll-sys failed HOT 3
- Only wake up one thread when use SO_REUSEADDR HOT 4
- compile wepoll failed on vs2010 HOT 1
- Is it possible to change the call to GetQueuedCompletionStatusEx so it is waiting in alertable? HOT 1
- Multi-Threading problems with epoll_wait HOT 1
- why use InterlockedAdd,but not _InterlockedExchangeAdd ? HOT 1
- `socket == 0` is wrong HOT 2
- Seems need to load ws2_32.dll manually
- ACCESS VIOLATION - Writing to nullptr HOT 8
- WSAPoll has been fixed HOT 2
- Wepoll may lose interest list entries when the OS reuses a socket descriptor HOT 2
- Wepoll loses events HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wepoll.