Hi,

 i have a problem while sending multiple RFCOMM-Data.
I use BtLibSocketSend (gBtLibRefNum, gConnectionSocket, (UInt8*) sendStr,
StrLen (sendStr) + 1);
to send data to a remote device.

If i call this function in a loop. (so i call it repeatedly)

The first data-packet is successfully send, but when i send the next packet
i get an btLibErrPending-error.

This occurs while the first packet is not finished.
First the btLibSocketEventSendComplete-event must appear.
After this event appears, i can send the next packet.

The problem is, how can i  handle this.
I must store somehow the packets , which i want to send. And send the next
packet
after the btLibSocketEventSendComplete-event appears.


I need a simple and good solution for this problem.

Special Thanks for any suggestions.

Peter





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to