Hi:
If you want to run multiple copies of the pcaspy CA server on one computer, it’s really the same as running multiple soft IOCs on the same computer.
You don’t need to change any port settings.
All copies of the CA server on the host will listen to UDP name searches on the default UDP port.
They cannot all use the same default TCP port, so except for the first server that you start you’ll see the warning messages “css warning: Configured TCP port was unavailable. Using dynamically assigned ..” but that’s not a problem.
What happens on the protocol level:
Clients search for a channel.
CAS replies: I have that channel, talk to me on TCP port xxxxxx.
For the first CAS that you start, that TCP port is the default, for the rest it’s a different port.
Doesn’t matter, the easiest way to configure this is still to leave EPICS_CAS_SERVER_PORT undefined since the clients will find all your IOCs just fine.
-Kay
hi,
I would like to ask if SimpleServer's port can be changed to others in code, such as 5066/5068? For example, I have a device driver written by pcaspy, I want to implement the same driver for many same type devices on one machine, then I need
to set them different server ports.
thanks a lot for your help.
Best wishes
Geyang 2016/8/28
|