Page 2 of 2

Re: Sockets

Posted: Wed Aug 02, 2017 2:38 pm
by [-hh]
Great that you have a working example/demo now.
[Is it a typo that you use the script local pSocket also as paramName of handlers?]
Use "localhost" or the hostnametoaddress of the hostname
This works on Mac here. What about "localhost" on your linux flavour?

What I meant with mentioning that is that you should get the server host by script so that it works for everybody who uses your script. If needed use a platform switch. Assuming you are preparing a demo ;-)


To your "close socket" notes.

May be the "unofficially reserved" port number 12345 on your local host is conflicting with your network settings/firewall?
12345 is unofficially reserved for NetBus remote administration tool (often Trojan horse). Also used by NetBuster, see https://en.wikipedia.org/wiki/List_of_T ... rt_numbers

There was also an 'upgrade' of "open socket" in 9.0, see the dictionary. May be the "close socket" wasn't adjusted accordingly?

As closing sockets by using the port number from "accept connections" worked until now always for me on all platforms I have no experience with "close socket" in other ways. If something is claimed in the dictionary but doesn't work, you should report that to LiveCode Quality Control Center.

Re: Sockets

Posted: Wed Aug 02, 2017 5:14 pm
by MaxV
Tested on different PCs (windows talking with linux), it works! :D
I made a diagram, do you like it?

Re: Sockets

Posted: Wed Aug 02, 2017 8:28 pm
by mrcoollion
Great flowchart..

Maybe you could make an english version ?

Re: Sockets

Posted: Thu Aug 03, 2017 4:24 am
by bogs
I agree, that is spectacular Max :!:

Re: Sockets

Posted: Thu Aug 03, 2017 5:16 pm
by MaxV
mrcoollion wrote:Great flowchart..

Maybe you could make an english version ?
I attached the source of the diagram (ODG file), you can edit with libreoffice or openoffice and translate it in every language! :D

Re: Sockets

Posted: Thu Aug 03, 2017 5:48 pm
by Klaus
Wonderful, thank you! Now if we all could speak italian... 8)

Re: Sockets

Posted: Fri Aug 04, 2017 1:13 pm
by bogs
non parli italiano ?? Ho pensato che tutti parlavano italiano !! :lol:

Re: Sockets

Posted: Fri Aug 04, 2017 1:51 pm
by mrcoollion
Mi dispiace anche non parlano italiano!

Re: Sockets

Posted: Fri Aug 04, 2017 2:08 pm
by Klaus
EAT THIS:
Isch han e lange zick in Kölle jewunnt un Kölsch jeschwaad, ävver würd dat keimol he schrieve! 8)

Re: Sockets

Posted: Fri Aug 04, 2017 5:16 pm
by MaxV
Klaus wrote:EAT THIS:
Isch han e lange zick in Kölle jewunnt un Kölsch jeschwaad, ävver würd dat keimol he schrieve! 8)
WOW, this german dialect crashed google translator!!! :lol:

Re: Sockets

Posted: Fri Aug 04, 2017 5:23 pm
by MaxV
mrcoollion wrote:Mi dispiace anche non parlano italiano!
Ok, I just translated it. :D

Re: Sockets

Posted: Fri Aug 04, 2017 5:35 pm
by Klaus
Hi all,
MaxV wrote:
Klaus wrote:EAT THIS:
Isch han e lange zick in Kölle jewunnt un Kölsch jeschwaad, ävver würd dat keimol he schrieve! 8)
WOW, this german dialect crashed google translator!!! :lol:
cooool! :-D

To shed some light on this, that is the dialect that the people in and around Cologne (in germany) are speaking and means:
I have been living in Cologne and speaking "Kölsch" for a long time, but would never write this way here. :D


Best

Klaus

Re: Sockets

Posted: Fri Aug 04, 2017 8:18 pm
by bogs
I like your translation better than big g's
Google Translate wrote:I am a long time in Kölle jewinnt and Kölsch jeshwaad, évver déd keimol he screamed!
Which kinda made me think you had lost your mind :wink:

Re: Sockets

Posted: Fri Aug 04, 2017 8:24 pm
by Klaus
bogs wrote:I like your translation better than big g's
Google Translate wrote:I am a long time in Kölle jewinnt and Kölsch jeshwaad, évver déd keimol he screamed!
Which kinda made me think you had lost your mind :wink:
:shock:

:D :D :D