Re: Socket Help

2020-04-06 Thread Bob Sneidar via use-livecode
Both. The Windows lag is present on the LAN and Internet. The Internet does not seem to be introducing any lag, or so little it’s not detectable. On Apr 6, 2020, at 11:50 AM, Phil Davis via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Hi Bob, I'm realizing now that your system

Re: Socket Help

2020-04-06 Thread Richard Gaskin via use-livecode
Thanks for the example, Bob. Yes, it does seem very conclusive. Do you know if there's an existing bug report for this? I've seen a few other Win-specific reports, but the ones I recall were mostly about file I/O, and I don't recall one for network I/O. -- Richard Gaskin Fourth World

Re: Socket Help

2020-04-06 Thread Phil Davis via use-livecode
Hi Bob, I'm realizing now that your system connects client and server via the internet. Mine connects them via LAN. Big security difference! In another system I wrote that connects client & server over the internet, the server does this upon receiving a request: does a 'wait flag' (temp

Re: Socket Help

2020-04-06 Thread Bob Sneidar via use-livecode
Hi Richard. Just to be absolutely certain I excluded any other factors, I tested retrieving data from mySQL from a Mac and from a PC using only the Message Box (no UI). Since I am out of the office, I can only test my Mac remotely. I can however remote into the mySQL server at work which is

Re: Socket Help

2020-04-06 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > I was a big believer that SSL was never going to be compromised… until > it was. The retooling of industry security standards over the last 6 > years or so has taught me the opposite: NEVER rely on out of the box > security if you can help it. After acknowledging how bugs

Re: Socket Help

2020-04-06 Thread Bob Sneidar via use-livecode
I was a big believer that SSL was never going to be compromised… until it was. The retooling of industry security standards over the last 6 years or so has taught me the opposite: NEVER rely on out of the box security if you can help it. Asking a web server to get data and return it introduces

Re: Socket Help

2020-04-06 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > I’m curious how this client server method handles multiple > simultaneous connections? I had the idea of having a listener agent > spawn an SQL Agent stack the first time a client connected, that would > then listen on a random port. The listener agent would return the >

Re: Socket Help

2020-04-06 Thread Bob Sneidar via use-livecode
Hi Phil. Thanks for the reply. I’m curious how this client server method handles multiple simultaneous connections? I had the idea of having a listener agent spawn an SQL Agent stack the first time a client connected, that would then listen on a random port. The listener agent would return the

Re: Socket Help

2020-04-06 Thread Phil Davis via use-livecode
Hi Bob, I created a client-server business system for a client some years ago. It too uses data encryption. What I did on the server side was prep the data for net transfer (base64Encode it as the final prep step, I think), then transfer length(data) & CR & data. On the client side, the app

Re: Socket Help

2020-04-05 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > I am creating a client/server socket based app and I am trying to > develop both the client and server on the same workstation, and I > am having difficulty. I *think* the issue is that the client and > server cannot both be on the same system, but I’m not entirely sure. >

Re: Socket Help

2020-04-05 Thread Håkan Liljegren via use-livecode
There is no problem running the server and client on the same machine. I've used it for doing elevated services. There is a demo stack for a chat server and client that you can download. I know that helped me a lot when doing my first client server. :-Håkan On 5 Apr 2020, 20:23 +0200, Bob

Re: Socket Help

2020-04-05 Thread Bob Sneidar via use-livecode
Hi Kee. Thanks for the response. I decided to go ahead and bypass the issue of the client and server being on the same device. I got my laptop out and created the server app there. I got it working as advertised. [Technical stuff] One thing I am doing is encrypting the data before sending it.

Re: Socket Help

2020-04-05 Thread Kee Nethery via use-livecode
Here’s how this should work. Server has an IP and port number that it listens on. Client sends a packet from the same IP and some random port. Computer routes the packet and it doesn’t have to send the packet out on the net. It goes out the client port and back in to the server port. Server

Socket Help

2020-04-05 Thread Bob Sneidar via use-livecode
Hi all. I am creating a client/server socket based app and I am trying to develop both the client and server on the same workstation, and I am having difficulty. I *think* the issue is that the client and server cannot both be on the same system, but I’m not entirely sure. I’m asking the

Re: Socket help needed for API

2017-10-30 Thread Charles Warwick via use-livecode
Hi Richard, I have an LC external under development that supports websockets that could potentially help you. Feel free to contact me off-list if you would like to try it out. Regards, Charles > On 30 Oct 2017, at 9:37 am, Monte Goulding via use-livecode >

Re: Socket help needed for API

2017-10-29 Thread Monte Goulding via use-livecode
Hi Richard LiveCode does not currently have websocket support. As this has come up recently in a number of areas I had a quick look at the spec (https://tools.ietf.org/html/rfc6455 ). It looks relatively feasible to implement on top of our current socket

Socket help needed for API

2017-10-29 Thread Richard Miller via use-livecode
I have been using LC to access an API through conventional means, but that site has now changed to a socket protocol. I have tried various methods, but just can’t get it to work. I would appreciate it if someone familiar with sockets could take a look and show me how to do this. I only need