socket write/read conflict?
Mark Talluto
userev at canelasoftware.com
Fri Mar 26 11:59:14 EDT 2010
On Mar 23, 2010, at 7:50 PM, Nicolas Cueto wrote:
> A question about something Alex wrote.
>
> -- And thank you, Alex. I'll be trying out what you wrote and see what
> happens. As for logging the results, I'd been doing that already, by
> having the script put results into a field. Odd thing is, this writing
> to a field seemed to have solved the simultaneity problem. Which made
> me think that printing the results caused a few milliseconds of delay
> that gave the read-write chance to function as expected. But then the
> problem reappeared.
>
> Anyway, to my question.
>
> What character should I use when reading/writing over sockets to
> indicate the end of a line of trasmitted data? CR? LF? Something else
> completely?
>
> Thanks.
I use something like: "!@#$%"
I make sure I append those characters to the end of data to be sent over a socket as well.
Best regards,
Mark Talluto
http://www.canelasoftware.com
More information about the use-livecode
mailing list