<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Socket communication Flexsim (Windows) and Linux c++ script in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584354#M81579</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;c++ doesn't establish the connection, i'm not receiving the "Hello server" message from Flexsim. And neither the "conncetion accepted" from the c++ code.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 22 Apr 2024 17:39:31 GMT</pubDate>
    <dc:creator>Catarina_Rema</dc:creator>
    <dc:date>2024-04-22T17:39:31Z</dc:date>
    <item>
      <title>Socket communication Flexsim (Windows) and Linux c++ script</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584352#M81577</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I've been trying to establish a socket communication between Flexsim and a Linux c++ script, but i had no sucess. Someone can help me. I put here the photos of each code i'm using. &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Apr 2024 15:01:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584352#M81577</guid>
      <dc:creator>Catarina_Rema</dc:creator>
      <dc:date>2024-04-22T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Socket communication Flexsim (Windows) and Linux c++ script</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584353#M81578</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;What fails, exactly? Does the C++ code accept the connection? Or does FlexSim not receive the response?&lt;P&gt;Also, be aware that the On Run Stop trigger fires every time you click the stop button. I would probably just make sure the socket is connected on reset, and then leave it open.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Apr 2024 16:38:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584353#M81578</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2024-04-22T16:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Socket communication Flexsim (Windows) and Linux c++ script</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584354#M81579</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;c++ doesn't establish the connection, i'm not receiving the "Hello server" message from Flexsim. And neither the "conncetion accepted" from the c++ code.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Apr 2024 17:39:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584354#M81579</guid>
      <dc:creator>Catarina_Rema</dc:creator>
      <dc:date>2024-04-22T17:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Socket communication Flexsim (Windows) and Linux c++ script</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584355#M81580</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I can't debug your C++ program. But I made this demo that works on a local computer (127.0.0.1).&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/81925-echoserverdemo.fsm" target="_blank"&gt;EchoServerDemo.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/81914-echo-server.py" target="_blank"&gt;echo_server.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The python script makes a simple socket echo server. If you have python installed, you can run the file from a command prompt like so:&lt;/P&gt;&lt;PRE&gt;cd path/to/folder
python -m echo_server.py&lt;/PRE&gt;&lt;P&gt;If you run that file, the server just sends and receives in a loop. Once the server is running, you can run the model and see that the model is sending and receiving via the socket. For me, this all worked fine, so I don't think it's an issue with FlexSim's socket code.&lt;/P&gt;&lt;P&gt;It looks like you're trying to connect to a different computer. Sometimes firewalls or other network issues can prevent sockets.&lt;/P&gt;&lt;P&gt;Note: I tested this with Python 3.11.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Apr 2024 17:08:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584355#M81580</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2024-04-23T17:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Socket communication Flexsim (Windows) and Linux c++ script</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584356#M81581</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43887/catarina-rema.html" nodeid="43887"&gt;@Catarina&lt;/A&gt;, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Apr 2024 18:11:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584356#M81581</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-04-26T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Socket communication Flexsim (Windows) and Linux c++ script</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584357#M81582</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;hi&lt;/P&gt;
 &lt;P&gt;I was able to establish the connection. So my previous code was correct, but actually there was a firewall preventing the connection like you said. &lt;/P&gt;
 &lt;P&gt;Thank you&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Apr 2024 13:56:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/socket-communication-flexsim-windows-and-linux-c-script/m-p/13584357#M81582</guid>
      <dc:creator>Catarina_Rema</dc:creator>
      <dc:date>2024-04-29T13:56:31Z</dc:date>
    </item>
  </channel>
</rss>

