Socket reading problem

Mark Wieder mwieder at ahsoftware.net
Sun Feb 19 19:29:42 EST 2012


Len-

Sunday, February 19, 2012, 3:34:41 PM, you wrote:

> 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

LC doesn't know from uints. Your best bet is to read them as chars (or
more precisely as bytes), as you're doing in your second example.

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list