* Added 'get_pid', 'get/set_name' and 'cat' command.

* SocketFd::open_local() should use SOCK_STREAM, not SOCK_DGRAM.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@959 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-08-20 01:38:38 +00:00
parent 5ec7790aa9
commit ded9e12ff1
7 changed files with 56 additions and 2 deletions
+4
View File
@@ -40,6 +40,7 @@
#include <functional>
#include <unistd.h>
#include <rak/path.h>
#include <sys/types.h>
#include <torrent/torrent.h>
#include <torrent/chunk_manager.h>
@@ -102,6 +103,9 @@ initialize_command_local() {
ADD_VARIABLE_C_STRING("library_version", torrent::version());
ADD_COMMAND_VOID("get_hostname", rak::ptr_fun(&apply_get_hostname));
ADD_COMMAND_VOID("get_pid", rak::ptr_fun(&getpid));
ADD_VARIABLE_STRING("name", "");
ADD_VARIABLE_VALUE("max_file_size", -1);
ADD_VARIABLE_VALUE("split_file_size", -1);