49208fc971d214da618be9cc0108a2acb7340613 kent Thu Jan 9 21:53:17 2014 -0800 Moving pmSendStringWithRetries and pmHubSingleLineQuery from para application to library, so the edwAnalysisDaemon can use it too. diff --git src/parasol/inc/paraMessage.h src/parasol/inc/paraMessage.h index e53c20c..391709d 100644 --- src/parasol/inc/paraMessage.h +++ src/parasol/inc/paraMessage.h @@ -82,16 +82,25 @@ * set timeOut to zero. For multi-message response * We know the ip, and can track the port for continuity * and the packet id for sequential series. */ 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 *pmHubSingleLineQuery(char *query, char *host); +/* Send message to hub and get single line response. + * This should be freeMem'd when done. */ + #endif /* PARAMESSAGE_H */