ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra/Deliantra/Protocol.pm
(Generate patch)

Comparing deliantra/Deliantra/Deliantra/Protocol.pm (file contents):
Revision 1.25 by root, Mon Apr 17 19:31:06 2006 UTC vs.
Revision 1.26 by root, Mon Apr 17 19:35:18 2006 UTC

560 $data = pack "na*", length $data, $data; 560 $data = pack "na*", length $data, $data;
561 561
562 syswrite $self->{fh}, $data; 562 syswrite $self->{fh}, $data;
563} 563}
564 564
565sub send_command {
566 my ($self, $command) = @_;
567
568 utf8::encode $command;
569 $self->send ("command $command");
570}
571
565sub send_queue { 572sub send_queue {
566 my ($self, $cmd) = @_; 573 my ($self, $cmd) = @_;
567 574
568 if (defined $cmd) { 575 if (defined $cmd) {
569 push @{ $self->{send_queue} }, $cmd; 576 push @{ $self->{send_queue} }, $cmd;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines