Socket reading problem
Len Morgan
len-morgan at crcom.net
Sun Feb 19 18:34:41 EST 2012
I'm trying to read data from a socket. The data is Modbus/TCP. The
first routine I tried is
read from socket pSock for 3 uInt2s
This gives me no data (both "it" and "the result" are empty). I know
the packet has been received and there is data after these 3 numbers.
If I change this
to:
read from socket for 6 chars
put it into tData
put binaryDecode("m3", tData, tSeq, tProto, tBytes)
then tSeq, tProto, and tBytes get the right data in them. I have tried
the first method with and without a callback message to no avail. Am I
missing something?
len morgan
More information about the use-livecode
mailing list