Hi
I used open function to open bluetooth port on MacOS 10.5.1.
My code is as below
int fd = -1;
fd = open(Bluetooth port path,O_RDWR + O_NOCTTY + O_NONBLOCK +
O_EXLOCK);
if(fd == -1)
printf("\nPort open failed..");
else
{
printf("\nPort successfully opened..);
close(fd);
}
but it hangs in open function, it is not returning....i also tried
with various flags..
Note :: Same thing works on MacOS 10.4(it's return success or failed)
What may be the problem ?
p2
p2 - 26 Feb 2008 12:56 GMT
> Hi
>
[quoted text clipped - 21 lines]
>
> p2
i do operation as in sequence open & close then again open immediately
p2 - 26 Feb 2008 12:59 GMT
> Hi
>
[quoted text clipped - 21 lines]
>
> p2
I do operation in sequence open then close then again open
immediately...
first time it open successfully .. second time it hand in open. (open
function block)