Re: Sockets (again)

2023-04-09 Thread Tom Glod via use-livecode
Thanks guys, this was a very insightful thread. On Wed, Apr 5, 2023 at 1:31 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 4/5/23 08:13, Bob Sneidar via use-livecode wrote: > > Thanks Phil. Yes I learned the hard way with my SQL Agent to > base64encode anything over

Re: Sockets (again)

2023-04-05 Thread Mark Wieder via use-livecode
On 4/5/23 08:13, Bob Sneidar via use-livecode wrote: Thanks Phil. Yes I learned the hard way with my SQL Agent to base64encode anything over sockets. And yes I do append a numtochar(13) coming and going and strip it off before decoding and read until numToChar(13). I don't use cr because I am

Re: Sockets (again)

2023-04-05 Thread Bob Sneidar via use-livecode
Thanks Phil. Yes I learned the hard way with my SQL Agent to base64encode anything over sockets. And yes I do append a numtochar(13) coming and going and strip it off before decoding and read until numToChar(13). I don't use cr because I am uncertain how each OS platform treats it. The Server Ag

Re: Sockets (again)

2023-04-04 Thread Phil Davis via use-livecode
Bob - Don't use EOF. It's broken since forever ago. I've done both of the following methods with success: -- either -- End your data stream with a CR, and then on the receiving end "read from socket XYZ for 1 line". This assumes that the data stream itself doesn't contain any CRs. I normally

Sockets (again)

2023-04-04 Thread Bob Sneidar via use-livecode
I have sockets working in my File Server Agent, but only using non-blocking calls, that is using "with message". Removing the "with message" bit does not return any response from the server agent. For instance I send a payload using write payload to socket tSocket with message "messageReceived

RE: Sockets (again)

2020-06-29 Thread Ralph DiMola via use-livecode
m: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Monday, June 29, 2020 5:42 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Sockets (again) Hi all. I’m trying to get sockets working. The host is working, but I am not getting

Re: Sockets (again)

2020-06-29 Thread doc hawk via use-livecode
I have a pair at http://dochawkbk.com/lcImages/ of master and slave stacks to talk to one another. They're meant to be compiled. They're probably 5.x stacks . . . I haven’t looked at them for a while. ___ use-livecode

Sockets (again)

2020-06-29 Thread Bob Sneidar via use-livecode
Hi all. I’m trying to get sockets working. The host is working, but I am not getting the message to trigger. Here’s the basic code: on mouseUp put "test" into tPayLoad open socket to "localhost:8085" write tPayload to socket "localhost:8085" end mouseUp -- socket handlers on acceptCo