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

Interaction executable model

Interaction executable model

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!

There are 0 guests and 0 other users also viewing this topic
You are here: