Facility Control

 View Only
  • 1.  Opening and Closing a Stream Socket

    Posted 02-24-2024 14:31

    I am trying to send TCP commands to a peice of broadcast equipment, but the equipment requires to open and close a "stream" socket.  I know that rosstalk.sendMessage() opens a raw socket, but it there a command in og script to complete the stream socket task.  Thank you in advance for your help.

    Scott Widder

  • 2.  RE: Opening and Closing a Stream Socket

    Posted 02-28-2024 12:13

    Hi Scott,

    The sockets which are opened by the function rosstalk.sendMessage() are automatically closed after a few seconds of inactivity and cannot be closed explicitly. However, if you would like to have a connection that you can control and is open indefinitely, you can make use of a listener which can be created by the <listener /> tag with ogScript. Please note that this script-based listener would have to be manually closed when you are done with it.

    Hope it helps. Please feel free to reach out if you have any questions.

    Best Regards,

    Altaz Daruwala
    Ross Video