Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » Baobei
  • » Profile

Posts

Posts

Mar-12-12 09:02:20
Interaction with compiled executable model via TCP/IP
Category: Developer

Hi,

i try to connect a c#-application via TCP/IP to a complied executable model. I can open the port fot the client and send the runtime commands listen in the txt-file of the example. If i send the 'setcontrolclienturl#1#127.0.0.1#10500#end' it seems to be working. I can see the sended message and some trace entries the the dosbox of the tankmodel.exe. If i send the 'settransferclienturl#2#127.0.0.1#10502#end' the tankmodel.exe crashes and i can't find out the problem. I have added two serversockets and one clientsocket in the c#-application. I have tried different kind of socket implementation in c# like socket,syncTcpClient and Server or asyncTcpClient and Server. But i can't let it running. I have copied the command from the txt-file and check the implematation of the client.exe (example), how there is created the server socket.
Somebody has an idea to fix my problem? Thanks!

  • Index
  • » Users
  • » Baobei
  • » Profile
You are here: