Coder Social home page Coder Social logo

win x64 sdk:10.0.18362.0 + VS2019, Udp-svr EPOLLIN WSARecvFrom and Tcp-client EPOLLIN WSARecv() both return(-1) and errno(112), not work? about wepoll HOT 6 CLOSED

piscisaureus avatar piscisaureus commented on May 12, 2024
win x64 sdk:10.0.18362.0 + VS2019, Udp-svr EPOLLIN WSARecvFrom and Tcp-client EPOLLIN WSARecv() both return(-1) and errno(112), not work?

from wepoll.

Comments (6)

piscisaureus avatar piscisaureus commented on May 12, 2024

What is the issue?

from wepoll.

QingruiHuang avatar QingruiHuang commented on May 12, 2024

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.

piscisaureus avatar piscisaureus commented on May 12, 2024

then WSARecvFrom(svr-sock), but return -1, recv nothing, why?

What is the error you get after WSARecvFrom returns -1?

from wepoll.

QingruiHuang avatar QingruiHuang commented on May 12, 2024

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.

QingruiHuang avatar QingruiHuang commented on May 12, 2024

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.

piscisaureus avatar piscisaureus commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.