Server is a tool, that can facilitate interprocess communication (IPC) for you. IPC consists of a transmission control protocol (TCP) server running in FreeCAD and a client outside. The TCP server can be connected to localhost or any other other IP address. Server's port can be selected arbitrarily in range from 1 to 65535, but ports that are not
are recommended. You can send command strings from external python script, C++ or Matlab using Qt5, PySide or python bindings respectively. Python command strings must compy with the FreeCAD/FreeCADGui application programming interface (API).
Property / Property Group | Description |
---|---|
Base | FreeCAD properties necessary for correct display in the tree view. |
Label | Name of this server tool shown in the tree view. |
Server Settings | Properties setting up server's parameters. |
Address | An IPv4 or IPv6 internet protocol (IP) address or "localhost" string. String "localhost" is equal to IPv4 address 124.0.0.1. |
Port | A TCP port number from 1 to 65535. Check with IANA to select an unassigned TCP port number. Each server tool has to have an unique port number. |
Running | A boolean specifying if the server is currently running or not. |