wizard thanks alot for your help, i was waiting your reply
I'll try your sugestion tomorrow.
Meanwhile, i realized that just after
Socket.Send(.... ,iStatus); executed and the phone
is already out of BT range the iStatus immediately gets -MaxInt.
That happens before User::WaitFoeRequest executed.
So i practicaly changed the code to:
This solves the 30 sec *TimeOut* problem that was caused by User::WaitForRequest , BUT now i just CANT close the socket?!?
if ( iStatus != KErrNone)
// restart socket to begin listening incoming connections
The iAcceptedSocket.Close; takes very long(more than 10 sec to be executed )
please any info please