Hi
I have filed thread previously, but it confusing, so i filed it again
properlly.
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); \\it open port successfully
if(fd == -1)
printf("\nPort open failed..");
else
{
printf("\nPort successfully opened..);
close(fd);
fd = -1;
}
fd = open(Bluetooth port path,O_RDWR + O_NOCTTY + O_NONBLOCK +
O_EXLOCK); \\it blocks (no return).
but it hangs in open function, it is not returning....i also tried
with various flags..
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)
Note :: Same thing works on MacOS 10.4(it's return success or failed)
What may be the problem ?
p2
>> Stay informed about: open Bluetooth port in 10.5