Operating System - HP-UX
1833706 Members
2550 Online
110063 Solutions
New Discussion

can not cancel async i/o request with aio_cancel

 
wangshan_1
Occasional Advisor

can not cancel async i/o request with aio_cancel

Hi -

Who tried on the aio_cancel API on Itanium machine with HPUX 11i 1.5 ? When we used this api to cancel async UDP socket requests, the return value is 2.That means " can not cancel" see the folloing code ...

...
For (i=0;i<100,i++)
{
AI0_READ(&aiocb[i]);
}

for(i=0;i<100,i++)
{
ret=AIO_CANCEL(0,&aiocb);
printf("return value ret=%d",ret);
}


Thanks

Yale
You can lose anything but freedom