Search found 222 matches

by zaxos
Fri May 24, 2019 10:15 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 18
Views: 12666

Re: Socket connections limit.

And if nothing else, this seems a case where we've learned that keeping sockets open that aren't needed for the nature of the transaction can saturate resources. Indeed I've learned so much invaluable information in the process ( and still learning ) that will definitely be an asset in the future. ...
by zaxos
Wed May 22, 2019 9:20 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to add element add the end of an array?
Replies: 14
Views: 8779

Re: How to add element add the end of an array?

I think what FourthWorld is saying is that right now you have an array that has its index keys in the following format: tArray["country1"] tArray["country2"] tArray["country3"]... That makes no sense since the only way you could add data to this array is either if you knew somehow which country is s...
by zaxos
Tue May 14, 2019 11:07 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to add element add the end of an array?
Replies: 14
Views: 8779

Re: How to add element add the end of an array?

Hi Zax, I will make a guess here that this: countries country[1] pop gdp country[2] pop gdp ... country[n] pop gdp Is not the correct format of your array and is more like this: countries France pop gdp Germany pop gdp ... Greece pop gdp This would make more sense. In that case you can just do the f...
by zaxos
Sat May 11, 2019 4:19 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 18
Views: 12666

Re: Socket connections limit.

REST = HTTP = sockets. It would seem the difference between the working and non-working systems isn't sockets, but the protocol used on top of sockets. I'm not sure what you by that. I understand HTTP requests use sockets but my point was that I no longer utilize a constant connection with the clie...
by zaxos
Sat May 11, 2019 3:26 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 18
Views: 12666

Re: Socket connections limit.

The REST API is also written in live code ( using lc server ).
by zaxos
Sat May 11, 2019 12:28 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 18
Views: 12666

Re: Socket connections limit.

Thank you for the answer LCMark. It proves a lot besides my lack of understanding for c++. I have tried the registry tweaks from the link you provided but it seemed to make no difference. Here are the facts that I have so far: - The server seems to crash after 4000~ if its a standalone or just freez...
by zaxos
Wed Apr 24, 2019 10:28 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 18
Views: 12666

Re: Socket connections limit.

"livecode/engine/src/opensslsocket.cpp" if (fd != 0) { int l = 0; if (secure) l = READ_SOCKET_SIZE * 16; else { unsigned long t_available; MCS_socket_ioctl(fd, FIONREAD, t_available); l = t_available; if (l == 0) l++; // don't read 0 } uint4 newsize = nread + l; if (newsize > rsize) { newsize += REA...
by zaxos
Wed Apr 24, 2019 5:32 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 18
Views: 12666

Re: Socket connections limit.

Yeah I have added a callback method to all socket operations, open sockets, read from sockets and eventually write to socket (even though I don't really use this one but as it turned out write to socket was blocking also).
by zaxos
Tue Apr 23, 2019 7:51 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 18
Views: 12666

Re: Socket connections limit.

16 GB ram 8 core Xeon processors , windows server 2012. I don't think it's a hardware issue, ram usage rarely gets beyond 300mb of the standalone and CPU usage is around 10% untill it reaches the limit ( 4000 ~ sockets ) at that point it goes at 30% for some time and then crashes. Also I don't think...
by zaxos
Tue Apr 23, 2019 5:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Socket connections limit.
Replies: 18
Views: 12666

Socket connections limit.

Hello everyone. I'm running a cloud-server which handles thousands of TCP socket connections but it seems to just die when socket connections goe's beyond 4000 ~. For now, I'm splitting the work by creating multiple workers that handle 1000 connections each and each of them connects to the main serv...
by zaxos
Thu Mar 14, 2019 5:32 pm
Forum: Making IDE Plugins
Topic: Livecode builder Foreign Function Interface question.
Replies: 2
Views: 5805

Livecode builder Foreign Function Interface question.

Hello everyone! I want to wrap: https://twapi.magicsplat.com/ in livecode builder but I'm having trouble understanding the binding part. For example private foreign handler win_sparkle_init() \ returns nothing binds to "c:winsparkle>win_sparkle_init!cdecl" in this code (taken from levurehelper-app_u...
by zaxos
Wed Oct 24, 2018 1:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Icon not appearing in taskbar
Replies: 12
Views: 7525

Re: Icon not appearing in taskbar

You probably have the decorations of the window to empty. if I judge correctly from the image then you have a full-screen application, then just set the decorations to "title" only. It doesn't matter, the title won't be visible if the app is full screen. set the decorations of this stack to "title" ...
by zaxos
Wed May 02, 2018 4:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Animationd & Windowshape
Replies: 2
Views: 2713

Re: Animationd & Windowshape

Animations are handmade!
by zaxos
Wed May 02, 2018 4:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Animationd & Windowshape
Replies: 2
Views: 2713

Re: Animationd & Windowshape

Tha reminded me of an app I made back then for my gf... good stuff!
Certainly works better on LC 9 than it was in 6.11.

https://www.youtube.com/watch?v=1J5dNm3 ... tu.be&hd=1

EDIT: I know its hard to see but he drops a heart <3!
by zaxos
Wed May 02, 2018 12:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Socket not working/connecting on another computer
Replies: 15
Views: 9513

Re: Socket not working/connecting on another computer

Hi agraham147. The attached stack will search your network and will try to connect to any socket that accepts connection on that port. I would suggest that you use a different port than 8080 since it is a very common port and it's being used by many programs. Other than that you can get the ip of yo...

Go to advanced search