Is LC encryption different for Mac than for Windows??
Bob Sneidar
bobsneidar at iotecdigital.com
Fri Jul 1 21:27:26 EDT 2022
OIC. Well I am using the non-blocking method using with message. I don't read from until. All the data should come through then send the message. It may be that there is some kind of limit on the length of the data, but that would suck. Also it doesn't explain why when the client and the server are both running on the Mac, it works flawlessly. A socket is a socket.
Bob S
> On Jul 1, 2022, at 18:23 , Phil Davis via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> I don't know about newer LC versions, but some older ones don't do "read from socket <socket> until EOF" correctly. Because of that, I added a data header containing the length of the data in bytes. On the receiving end, something like this happens:
>
> read from socket <socket> for 1 line
> put it into tLength
> read from socket <socket> for tLength
> put it into tData
> close socket <socket>
>
> I add error-checking of course.
>
> HTH -
> Phil
>
>
> On 7/1/22 6:10 PM, Phil Davis via use-livecode wrote:
>> I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter.
>>
>> Phil Davis
>>
>>
>> On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote:
>>> Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire.
>>>
>>> Bob S
>>>
>>>
>>>> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>>
>>>> <sigh> That's supposed to be Binary Encoding
>>>>
>>>>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>>>
>>>>> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something?
>>>>>
>>>>> Sent from my iPhone
>>>>>
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
> --
> Phil Davis
> (503) 307-4363
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list