16f04f5bdeccc1ad1d90c6f17d150e956bec6ecb kent Mon Jan 13 19:34:09 2014 -0800 Librarified some message-the-hub stuff so can reuse diff --git src/parasol/inc/paraMessage.h src/parasol/inc/paraMessage.h index 391709d..447188e 100644 --- src/parasol/inc/paraMessage.h +++ src/parasol/inc/paraMessage.h @@ -87,20 +87,27 @@ boolean pmmReceive(struct paraMultiMessage *pmm, struct rudp *ru); /* Receive multi message. Print warning message and return FALSE if * there is a problem. */ void pmFetchOpenFile(struct paraMessage *pm, struct rudp *ru, char *fileName); /* Read everything you can from socket and output to file. */ void pmFetchFile(char *host, char *sourceName, char *destName); /* Fetch small file. */ boolean pmSendStringWithRetries(struct paraMessage *pm, struct rudp *ru, char *string); /* Send out given message strng. Print warning message and return FALSE if * there is a problem. Try up to 5 times sleeping for 60 seconds in between. * This is an attempt to help automated processes. */ +char *pmHubSendSimple(char *message, char *host); +/* Send message to host, no response. */ + char *pmHubSingleLineQuery(char *query, char *host); /* Send message to hub and get single line response. * This should be freeMem'd when done. */ +struct slRef *pmHubMultilineQuery(char *query, char *host); +/* Send a command with a multiline response to hub, + * and return response as a list of strings. */ + #endif /* PARAMESSAGE_H */