Change Port on Atom Socket Listen

All topics on the Atoms in any Enterprise Dynamics Library.
Post Reply
Marcson
Posts: 1
Joined: Sunday 22 December, 2013 - 17:37

Change Port on Atom Socket Listen

Post by Marcson »

Hi Incontrol Community,

I'd like to use the Atom "Socket Listen", but the Port Change won't work.
If I drag'n'drop a Socket Listen and a Socket Send Atom into my Model and start using the Testcenter, everything works like a charm.
But as I change the Listening Port to something else than 7122 it won't work anymore. Of course, Sending Port has been changed likewise.
Firewall should not be an issue, checked that, all Ports are allowed.
An interesting observation I made is that if I change the listening Port to something else and keep the sending Port at 7122 it keeps working until I save und reload the model.

Thanks for your help
Marcson
User avatar
MatthijsJongboer
Posts: 200
Joined: Thursday 11 November, 2010 - 14:12

Re: Change Port on Atom Socket Listen

Post by MatthijsJongboer »

Hi Marcson,

You are right. The port is set only on creation of the atom (so at load). You can modify it using:

Code: Select all

Do(
 SocketStopListen(c),
 SocketStartListen(c, TextAtt(1, c))
)
The atom reference c can also be AnimAtom if you have selected the atom in your model layout.
We will modify the atom that this will happen on reset so port changes are included.

Gr. Matthijs
Post Reply