Skip to content

Commit

Permalink
Documentation for sending a module.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil Samith Bysani committed Jan 4, 2009
1 parent 58cb6f0 commit f01ce8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/base/bang-com.c
Expand Up @@ -382,6 +382,17 @@ unsigned int write_message(peer *self, void *message, unsigned int length) {
return written;
}

/**
* \param self The thread sending the module.
* \param request The module path to send.
*
* \brief Sends a module to a peer.
*
* Discussion: Would it be better to keep the module in memory, so
* we don't have to read from disk everytime we send a module? However,
* it may be possible that modules don't fit in memory though this seems
* _very_ unlikely.
*/
void send_module(peer *self, BANG_request request) {
FILE *fd = fopen((char*)request.request,"r");
if (fd == NULL) {
Expand Down
1 change: 0 additions & 1 deletion src/base/bang-module.c
Expand Up @@ -27,7 +27,6 @@
* -BANG_module_run: runs the module
*/

#define UPDATE_SIZE 1024

/**
* \param path Valid path to a file.
Expand Down

0 comments on commit f01ce8e

Please sign in to comment.