Page 2 of 2
Re: sockets
Posted: Wed Jun 19, 2013 6:05 am
by mwieder
Ditto on the awesome.
And... if you can give me client and server sockets I can give you in-app debugging.
Re: sockets
Posted: Wed Jun 19, 2013 5:17 pm
by LCMark
@monte: I've pushed the changes to get notify.cpp (and therefore DNS resolution in the socket code) to work on iOS to the feature-externals_api_v5 branch in my repo (it builds on the previous changes)... I'd hoped to have time to pull out the notify-related changes separately today as a separate branch, but that wasn't to be. I'll see if I can tomorrow morning though.
Re: sockets
Posted: Wed Jun 19, 2013 5:18 pm
by LCMark
@runrevmark: if you tell me where to look, I'll see if I can help untangle the Java synchronization stuff
Turns out it isn't java synchronization related... But more the attempt to use the JNI on a thread that Java knows nothing about - the Android VM doesn't seem to like that much

Re: sockets
Posted: Wed Jun 19, 2013 5:42 pm
by DarScott
I think this means I should stop work on the iOS sockets external and script library.
Re: sockets
Posted: Wed Jun 19, 2013 11:01 pm
by monte
@DarScott I possibly wouldn't have done mergSocket if I knew you were still working on darzSockets... Anyway, it's done now and engine sockets make both redundant which is a good thing in my opinion.
Re: sockets
Posted: Wed Jun 19, 2013 11:38 pm
by DarScott
Yeah, it is a good thing that sockets are in the engine, especially now that there is a mechanism for getting fixes for obscure bugs. And simple enhancements like broadcasting (assuming that is a good and proper thing, even with an allowBroadcast property if that makes moralizers happy).
And as for darzSockets, I only recently got back to it. It works, but I wanted to make something with some of the same quirks as the engine version. And by going to partial blocking, the LiveCode level can be greatly simplified.
Re: sockets
Posted: Sun Jun 23, 2013 2:50 am
by monte
OK, got sockets working on iOS... testing between desktop and simulator. But there seems to be a strange delay occasionally between the new connection callback on desktop and the socket open callback on the simulator... most of the time it's immediate but occasionally there's a fair wait... any ideas why that would happen?
Re: sockets
Posted: Sun Jun 23, 2013 10:27 am
by splash21
It's great that you guys are looking at sockets. One useful addition would be the ability to specify the local port to be used when connecting to a remote server - bug 5097 :
http://quality.runrev.com/show_bug.cgi?id=5097
If that's possible, it would open up a whole load of P2P possibilities - the same way as Skype and others do it.
Re: sockets
Posted: Sun Jun 23, 2013 12:28 pm
by monte
doesn't look overly complicated... why not give it a crack John?
Re: sockets
Posted: Mon Jun 24, 2013 9:56 am
by LCMark
OK, got sockets working on iOS... testing between desktop and simulator. But there seems to be a strange delay occasionally between the new connection callback on desktop and the socket open callback on the simulator... most of the time it's immediate but occasionally there's a fair wait... any ideas why that would happen?
Great! This is going to make lots of people happy I think
In regards to the delay, then this is quite likely due to the event loop not being interrupted on the iOS side so there's a delay until some other event happens. In the callback that processes the socket events from CoreFoundation, is there a 'pingwait()'? This method causes any pending 'wait()' to be broken and thus events to be processed on the engine side.
Re: sockets
Posted: Mon Jun 24, 2013 10:42 am
by monte
That was it... so opening sockets seems to work now... still something going on with the callbacks from accepting them so I'll look into that
Re: sockets
Posted: Wed Oct 09, 2013 11:05 pm
by monte
I see the new openSSL branch... I suspect this means mobile [ssl] sockets, encryption etc are on the way... Will this make 6.5?
Re: sockets
Posted: Mon Oct 14, 2013 9:26 am
by LCMark
@monte: Yes - after much fiddling around I finally got OpenSSL (latest version) compiling for all platforms with a collection of build scripts. Thus far I've got as far as getting encrypt/decrypt working for iOS, sockets still need some more poking. There's still a fair bit to do since the standalone builder needs tweaking as well (to handle the additional, optional, revsecurity blob), but if not in 6.5, I'm hoping to get it all done for 6.6 which should follow not too long after.