![]() |
License / Documentation home / Help and feedback | ![]() |
We intend to expand this FAQ considerably, as people start asking us more questions :-). The questions below are a rough beginning.
Be sure you're using GNU make. Try "make -v" to confirm that it's GNU make. GNU make will print out the version; other makes will probably not even recognize the -v flag.
"I'm trying to build a server in my own directory, using the MIT Makefile template, but make can't find the paths."
In order to compile a server outside the MIT directory stack, be sure you do the following in your Makefile, at the top:
# Modify this to point to the package root directoryThis will establish the appropriate context for the compilation.ROOT_DIR = <root of Communicator>
# Need these to provide something useful for MIT rules.make.
TEMPLATES = $(ROOT_DIR)/templates
"I want to read some of the Hub output in the process monitor, but my Hub window keeps scrolling back to the bottom."
MITRE provides a process monitor to aid in controlling processes. Each pane of the process monitor has a "Pause" button which pauses the output. Normally, the Hub prints out a pacifier character every second when it's not receiving messages. So in order to review the Hub output you must press the "Pause" button, or restart the Hub with the -suppress_pacifier command line directive.
First, make sure that your outgoing broker or proxy is calling GalIO_BrokerDataOutDone or GalSS_ProxyDone, as appropriate. If it doesn't, the incoming broker will never run the appropriate callbacks. Second, if you're using brokers instead of proxies on the incoming side, make sure you call GalIO_SetBrokerActive on the incoming broker. If you don't, the broker will never read from its connection.
There is no looping construct in the Hub scripting language. Execution resumes at the point where the message returns. Your program terminated because there were no following rules. If you want to simulate an infinite loop, you must do it by tail recursion: introduce a new message for each "iteration". See the double server example.
"Rules that shouldn't be firing are firing when the Hub starts up."
There's probably something in your initial
token which is causing the rules to fire. Customize either the rules
or the initial token to rule out the offending condition.
![]() |
License / Documentation home / Help and feedback | ![]() |