I apologies, I am new in casparcg and, also in livecode and i have no coding experience. But I am try to develop a caspercg client for sports broadcasting.
I am stuck on server and client communication status massage (like: Successful, connected or online).
As a fresher I always follow and read both forums senior members post/suggestions.
I took below code from here
And this is work for me, I can talk with server. But problem is that, whatever ip & port I put in the field “IP” its show green (connected).
Code: Select all
global casparServer -- if casparServer is not among the lines of opensockets then -- end if on mouseUp if field "IP" is empty then set the backgroundcolor of button "Server" to "Gray " else put field "IP" into casparServer if casparServer is among the lines of the opensockets then close socket casparServer set the backgroundcolor of button "Server" to "Gray " else open socket to casparServer set the backgroundcolor of button "Server" to "green" end if end if end mouseUp
But I like to make sure that; button will be green, when only caspar host is connected. (When my connection request accepted by server, I want a return massage in to my client, that server accept me).
Please advice me..[2017-09-06 09:30:10.459]  [info] Accepted connection from 10.51.11.139 2