OpenMathServerPackageΒΆ
omserver.spad line 1 [edit on github]
OpenMathServerPackage provides the necessary operations to run FriCAS as an OpenMath server, reading/writing objects to/from a port. Please note the facilities available here are very basic. The idea is that a user calls e.g. Omserve(4000, 60) and then another process sends OpenMath objects to port 4000 and reads the result.
- OMreceive: OpenMathConnection -> Any
OMreceive(c)reads an OpenMath object from connectioncand returns the appropriate FriCAS object.
- OMsend: (OpenMathConnection, Any) -> Void
OMsend(c, u)attempts to outputuon aciom{c} in OpenMath.
- OMserve: (SingleInteger, SingleInteger) -> Void
OMserve(portnum, timeout)puts FriCAS into server mode on port numberportnum. The parametertimeoutspecifies the timeout period for the connection.