SetSocketInformation(Socket, AFD_INFO_BLOCKING_MODE, &BlockMode, NULL, NULL, NULL, NULL);
Socket->SharedData->NonBlocking = TRUE;
- /* Deactive WSPEventSelect */
+ /* Deactivate WSPEventSelect */
if (Socket->SharedData->AsyncEvents)
{
if (WSPEventSelect(Handle, NULL, 0, lpErrno) == SOCKET_ERROR)
}
}
- /* Verifiy if we should use APC */
+ /* Verify if we should use APC */
if (lpOverlapped == NULL)
{
}
if (lpCompletionRoutine == NULL)
{
- /* Using Overlapped Structure, but no Completition Routine, so no need for APC */
+ /* Using Overlapped Structure, but no Completion Routine, so no need for APC */
APCContext = lpOverlapped;
APCFunction = NULL;
Event = lpOverlapped->hEvent;
}
else
{
- /* Using Overlapped Structure and a Completition Routine, so use an APC */
- APCFunction = &AfdAPC; // should be a private io completition function inside us
+ /* Using Overlapped Structure and a Completion Routine, so use an APC */
+ APCFunction = &AfdAPC; // should be a private io completion function inside us
APCContext = HeapAlloc(GlobalHeap, 0, sizeof(AFDAPCCONTEXT));
if (!APCContext)
{
NULL,
0);
- /* Wait for completition of not overlapped */
+ /* Wait for completion of not overlapped */
if (Status == STATUS_PENDING && lpOverlapped == NULL)
{
/* It's up to the protocol to time out recv. We must wait
}
}
- /* Verifiy if we should use APC */
+ /* Verify if we should use APC */
if (lpOverlapped == NULL)
{
}
if (lpCompletionRoutine == NULL)
{
- /* Using Overlapped Structure, but no Completition Routine, so no need for APC */
+ /* Using Overlapped Structure, but no Completion Routine, so no need for APC */
APCContext = lpOverlapped;
APCFunction = NULL;
Event = lpOverlapped->hEvent;
}
else
{
- /* Using Overlapped Structure and a Completition Routine, so use an APC */
- APCFunction = &AfdAPC; // should be a private io completition function inside us
+ /* Using Overlapped Structure and a Completion Routine, so use an APC */
+ APCFunction = &AfdAPC; // should be a private io completion function inside us
APCContext = HeapAlloc(GlobalHeap, 0, sizeof(AFDAPCCONTEXT));
if (!APCContext)
{
NULL,
0);
- /* Wait for completition of not overlapped */
+ /* Wait for completion of not overlapped */
if (Status == STATUS_PENDING && lpOverlapped == NULL)
{
- WaitForSingleObject(SockEvent, INFINITE); // BUGBUG, shouldn wait infintely for receive...
+ WaitForSingleObject(SockEvent, INFINITE); // BUGBUG, shouldn wait infinitely for receive...
Status = IOSB->Status;
}
}
}
- /* Verifiy if we should use APC */
+ /* Verify if we should use APC */
if (lpOverlapped == NULL)
{
/* Not using Overlapped structure, so use normal blocking on event */
}
if (lpCompletionRoutine == NULL)
{
- /* Using Overlapped Structure, but no Completition Routine, so no need for APC */
+ /* Using Overlapped Structure, but no Completion Routine, so no need for APC */
APCContext = lpOverlapped;
APCFunction = NULL;
Event = lpOverlapped->hEvent;
}
else
{
- /* Using Overlapped Structure and a Completition Routine, so use an APC */
- APCFunction = &AfdAPC; // should be a private io completition function inside us
+ /* Using Overlapped Structure and a Completion Routine, so use an APC */
+ APCFunction = &AfdAPC; // should be a private io completion function inside us
APCContext = HeapAlloc(GlobalHeap, 0, sizeof(AFDAPCCONTEXT));
if (!APCContext)
{
NULL,
0);
- /* Wait for completition of not overlapped */
+ /* Wait for completion of not overlapped */
if (Status == STATUS_PENDING && lpOverlapped == NULL)
{
- WaitForSingleObject(SockEvent, INFINITE); // BUGBUG, shouldn wait infintely for send...
+ WaitForSingleObject(SockEvent, INFINITE); // BUGBUG, shouldn wait infinitely for send...
Status = IOSB->Status;
}
SendInfo.TdiConnection.RemoteAddress = RemoteAddress;
SendInfo.TdiConnection.RemoteAddressLength = Socket->HelperData->MaxTDIAddressLength;
- /* Verifiy if we should use APC */
+ /* Verify if we should use APC */
if (lpOverlapped == NULL)
{
/* Not using Overlapped structure, so use normal blocking on event */
}
if (lpCompletionRoutine == NULL)
{
- /* Using Overlapped Structure, but no Completition Routine, so no need for APC */
+ /* Using Overlapped Structure, but no Completion Routine, so no need for APC */
APCContext = lpOverlapped;
APCFunction = NULL;
Event = lpOverlapped->hEvent;
}
else
{
- /* Using Overlapped Structure and a Completition Routine, so use an APC */
- APCFunction = &AfdAPC; // should be a private io completition function inside us
+ /* Using Overlapped Structure and a Completion Routine, so use an APC */
+ APCFunction = &AfdAPC; // should be a private io completion function inside us
APCContext = HeapAlloc(GlobalHeap, 0, sizeof(AFDAPCCONTEXT));
if (!APCContext)
{
NULL,
0);
- /* Wait for completition of not overlapped */
+ /* Wait for completion of not overlapped */
if (Status == STATUS_PENDING && lpOverlapped == NULL)
{
- /* BUGBUG, shouldn't wait infintely for send... */
+ /* BUGBUG, shouldn't wait infinitely for send... */
WaitForSingleObject(SockEvent, INFINITE);
Status = IOSB->Status;
}