FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with oSocket:bRead
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Problem with oSocket:bRead
Posted: 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 (fw): Select all Collapse
Function Mainloop
oSocket:senddata()
do while cRecData = 'OK'
end
return

Function OnRead
cRecData := oSocket:GetData()
return


Regards,
Dutch
Regards,

Dutch



FWH 2304 / 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)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: Problem with oSocket:bRead
Posted: Wed Apr 14, 2010 11:23 PM

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

Regards,
Dutch

Regards,

Dutch



FWH 2304 / 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)

Continue the discussion