7689c570a2b6bbd480d09cdc162ba56d86426b07 kent Fri Dec 27 19:50:04 2013 -0800 Moving a couple of routines to library so they can be shared. diff --git src/parasol/inc/paraMessage.h src/parasol/inc/paraMessage.h index bb2c762..e53c20c 100644 --- src/parasol/inc/paraMessage.h +++ src/parasol/inc/paraMessage.h @@ -76,16 +76,22 @@ void pmmInit(struct paraMultiMessage *pmm, struct paraMessage *pm, struct in_addr sin_addr); /* Initialize structure for multi-message response */ boolean pmmReceiveTimeOut(struct paraMultiMessage *pmm, struct rudp *ru, int timeOut); /* Multi-message receive * Wait up to timeOut microseconds for message. To wait forever * 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. */ + #endif /* PARAMESSAGE_H */