* 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
+9
View File
@@ -116,6 +116,14 @@ apply_print(const torrent::Object& rawArgs) {
return torrent::Object();
}
torrent::Object
apply_cat(const torrent::Object& rawArgs) {
std::string result;
rpc::print_object_std(&result, &rawArgs, 0);
return result;
}
void
initialize_command_ui() {
ADD_VARIABLE_STRING("key_layout", "qwerty");
@@ -133,4 +141,5 @@ initialize_command_ui() {
// ADD_COMMAND_LIST("view_sort_current", rak::bind_ptr_fn(&apply_view_filter, &core::ViewManager::set_sort_current));
ADD_COMMAND_LIST("print", rak::ptr_fn(&apply_print));
ADD_COMMAND_LIST("cat", rak::ptr_fn(&apply_cat));
}