Problem with oSocket:bRead

Problem with oSocket:bRead

Postby dutch » Wed Apr 14, 2010 10:50 pm

Dear All,

I've got the problem with TSocket. When I send the data to another program and must wait for answer but it send to oSocket:bRead. When I send the data, it is in the mainloop (oTimer) but it answer in another routine. How can I get this data?

I try to add received data to public variable and retreive by call function and return this public variable but it doesn't work.

Example
=======
Code: Select all  Expand view
Function Mainloop
oSocket:senddata()
do while cRecData = 'OK'
end
return

Function OnRead
cRecData := oSocket:GetData()
return
 


Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Problem with oSocket:bRead

Postby dutch » Wed Apr 14, 2010 11:23 pm

Can I use oSocket:OnRead instead of oSocket:bRead ?

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 41 guests