Menu

UDP sockets

Anonymous
2016-05-02
2016-05-10
  • Anonymous

    Anonymous - 2016-05-02

    Hi,

    Thank you for this great tool.
    I am trying to establish a simultaneous connection toward differents ports. Is it possible? (without opening/closing/opening closing/etc)
    The console only has one 'partner' port and opening a socket through the function 'connectSocket' seems to close the previous one.

    Thanks for your help

     
  • Stefan Zieker

    Stefan Zieker - 2016-05-03

    Hi,

    what is your exact intention? Do you want to send the same data to 2 destinations and show the received data drom both in one console? Or do you want to route the data from destination 1 to destination 2?

    Best regards,
    Stefan

     

    Last edit: Stefan Zieker 2016-05-03
  • Anonymous

    Anonymous - 2016-05-03

    Hi,

    Closer to answer 1.
    I want to send data from one source to two destinations. Right now I would like to show the received data in two different consoles (the final goal being to send the data to several hardware targets)
    I hope this is clearer.

    Thank you for your time,
    MJ

     
  • Stefan Zieker

    Stefan Zieker - 2016-05-03

    Hi,

    you have to create a worker script with 2 UDP sockets and 2 consoles (see the manual for more details).

    PS: If you are using the current version of ScriptCommunicator (04.10) then your script can add these consoles and your other GUI-elements in the main window (instead of showing them in a separate window). See exampleScripts\WorkerScripts\TestAddToolBoxPageToMainWindow and exampleScripts\WorkerScripts\TestAddTabsToMainWindow for an example.

    Best regards,
    Stefan

     

    Last edit: Stefan Zieker 2016-05-03
  • Stefan Zieker

    Stefan Zieker - 2016-05-04

    Hi,

    your post has inspired me to add some script functions which make it easier to use ScripCommunicator in 1 to n connections (with the help of a script). I will release a new version of ScripCommunicator this weekend which includes this new functions and a script which fulfills your needs. I hope this is not to late for you.

    Best regards,
    Stefan

     

    Last edit: Stefan Zieker 2016-05-04
  • Stefan Zieker

    Stefan Zieker - 2016-05-06

    Hi,

    I have released a new version of ScriptCommunicator (04.11). This version includes a script which fulfills your needs (WorkerScripts\AdditionalInterface\UDP).

    Best regards,
    Stefan

     
  • Anonymous

    Anonymous - 2016-05-10

    I will test it now, Thank you very much.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.