Windows上的客户端/服务器perl协议RPC

时间:2017-11-22 16:42:31

标签: windows perl server client rpc

我想使用RPC协议创建一个服务器(在Windows机器上)。 我的服务器代码:

# Create a subclass of RPC::PlServer
use RPC::PlServer;

$MyServer::VERSION = '0.01';
@MyServer::ISA = qw(RPC::PlServer);

# Overwrite the Run() method to handle a single connection
sub Run {
    my $self = shift;
    my $socket = $self->{'socket'};
}

# Create an instance of the MyServer class
my $server = MyServer->new({'localport' => '8888'}, \@ARGV);

# Bind the server to its port to make it actually running
$server->Bind();
die "Fail : $!\n" unless $serveur;
print "Server is running on the port 8888 \n";

当执行此操作时,我获得:

Cannot write to : No such file or directory at C:/Strawberry/perl/site/lib/Net/Daemon.pm line 575. at C:/Strawberry/perl/site/lib/Net/Daemon/Log.pm line 136. 

除了cpan的文档之外,我没有找到任何文档。我做错了什么?

0 个答案:

没有答案