IOCP模型总结(转)


                WSABUF buf;
                buf.buf = pPerIo->buf;
                buf.len = BUFFER_SIZE;
                pPerIo->nOperationType = OP_READ;
                
                DWORD dwRecv = 0;
                DWORD dwFlags = 0;
                
                ::WSARecv( pPerHandle->s, &buf, 1, &dwRecv, &dwFlags, &pPerIo->ol, NULL );

            }
            break;
        case OP_WRITE:
        case OP_ACCEPT:
            break;

        }

    }

    return 0;
}

你可能感兴趣的:(null,buffer)