Sockets

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Sockets

Post by [-hh] » Wed Aug 02, 2017 2:38 pm

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.
shiftLock happens

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Sockets

Post by MaxV » Wed Aug 02, 2017 5:14 pm

Tested on different PCs (windows talking with linux), it works! :D
I made a diagram, do you like it?
Attachments
SpiegazioneSockets.jpg
Last edited by MaxV on Thu Aug 03, 2017 5:13 pm, edited 1 time in total.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Sockets

Post by mrcoollion » Wed Aug 02, 2017 8:28 pm

Great flowchart..

Maybe you could make an english version ?
Last edited by mrcoollion on Thu Aug 03, 2017 7:41 am, edited 1 time in total.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Sockets

Post by bogs » Thu Aug 03, 2017 4:24 am

I agree, that is spectacular Max :!:
Image

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Sockets

Post by MaxV » Thu Aug 03, 2017 5:16 pm

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
Attachments
SpiegazioneSockets.odg.zip
(12.99 KiB) Downloaded 172 times
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Sockets

Post by Klaus » Thu Aug 03, 2017 5:48 pm

Wonderful, thank you! Now if we all could speak italian... 8)

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Sockets

Post by bogs » Fri Aug 04, 2017 1:13 pm

non parli italiano ?? Ho pensato che tutti parlavano italiano !! :lol:
Image

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Sockets

Post by mrcoollion » Fri Aug 04, 2017 1:51 pm

Mi dispiace anche non parlano italiano!

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Sockets

Post by Klaus » Fri Aug 04, 2017 2:08 pm

EAT THIS:
Isch han e lange zick in Kölle jewunnt un Kölsch jeschwaad, ävver würd dat keimol he schrieve! 8)

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Sockets

Post by MaxV » Fri Aug 04, 2017 5:16 pm

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:
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Sockets

Post by MaxV » Fri Aug 04, 2017 5:23 pm

mrcoollion wrote:Mi dispiace anche non parlano italiano!
Ok, I just translated it. :D
Attachments
SpiegazioneSockets_en.odg.zip
(13.15 KiB) Downloaded 217 times
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Sockets

Post by Klaus » Fri Aug 04, 2017 5:35 pm

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

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Sockets

Post by bogs » Fri Aug 04, 2017 8:18 pm

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:
Image

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Sockets

Post by Klaus » Fri Aug 04, 2017 8:24 pm

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

Post Reply