ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/dm-support.ext
(Generate patch)

Comparing deliantra/server/ext/dm-support.ext (file contents):
Revision 1.20 by root, Tue Dec 16 23:25:24 2008 UTC vs.
Revision 1.26 by root, Mon Apr 12 05:27:10 2010 UTC

29reload_archetypes & 29reload_archetypes &
30ext::help::reload & 30ext::help::reload &
31ext::books::reload & 31ext::books::reload &
32ext::map_tags::reload & 32ext::map_tags::reload &
33ext::map_world::reload & 33ext::map_world::reload &
34# ext::map_scheduler::loadall & # debugging only!
35cf::object::create_count, cf::object::destroy_count, cf::object::free_count, cf::object::object_count
36while (EV::TIMEOUT & Coro::EV::timed_io_once \$fh, EV::READ, 1) { Coro::Debug::command "ps" } &
34\{cf::mallinfo}) 37({cf::mallinfo})
35EOF 38EOF
36 print $fh "\n> "; 39 print $fh "\n> ";
37 40
38 my $iow; $iow = EV::io $fh, EV::READ, sub { 41 my $iow; $iow = AE::io $fh, 0, sub {
39 if (defined (my $cmd = <$fh>)) { 42 if (defined (my $cmd = <$fh>)) {
40 $cmd =~ s/\s+$//; 43 $cmd =~ s/\s+$//;
41 44
42 if ($cmd =~ /^\s*exit\b/i) { 45 if ($cmd =~ /^\s*exit\b/i) {
43 print $fh "will not exit() server.\n"; 46 print $fh "will not exit() server.\n";
88our $LISTENER; 91our $LISTENER;
89 92
90# now a shell listening on a tcp-port - let the firewall decide access rights 93# now a shell listening on a tcp-port - let the firewall decide access rights
91if ($cf::CFG{perl_shell}) { 94if ($cf::CFG{perl_shell}) {
92 if (my $listen = new IO::Socket::INET LocalAddr => $cf::CFG{perl_shell}, Listen => 1, ReuseAddr => 1, Blocking => 0) { 95 if (my $listen = new IO::Socket::INET LocalAddr => $cf::CFG{perl_shell}, Listen => 1, ReuseAddr => 1, Blocking => 0) {
93 $LISTENER = EV::io $listen, EV::READ, sub { tcp_serve $listen->accept }; 96 $LISTENER = AE::io $listen, 0, sub { tcp_serve $listen->accept };
94 } 97 }
95} 98}
96 99
97 100

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines