IOCP (Complete Port) Development Book (2)

xiaoxiao2021-03-06  17

During the development process, the call function acceptex is always an error. The error code is 10038. According to debugging, it is available for all created Socket, and has bind and listen. This is a problem, I have been debugging for a day. I thought about it at 10:00 yesterday, do you want to empty the input structure? Later, I will then test the variable of the Overlapped structure, all clear to 0, and the result is no problem. Really mad.

By taking a day, a problem is finalized, then how do you receive a connection, and after receiving the connection, how do you operate the next step?

Since IOCP is implemented by sending requests, what is going to do next, be sure to do advance. For example, if you want to receive a connection, you must first make an AcceptEx operation. If you want to receive data, you must first make WSAarecv operating.

How to receive and send data, and the closed process of the connection.

转载请注明原文地址:https://www.9cbs.com/read-50837.html

New Post(0)