When I traced the code lines, I got a problem in the function.pl file.
As following segment code lines:
Code: Select all
...................
sub mainLoop_initialized {
Benchmark::begin("mainLoop_part1") if DEBUG;
# Handle connection states
$net->checkConnection();
# Receive and handle data from the RO server
my $data = $net->serverRecv;
if (defined($data) && length($data) > 0) {
Benchmark::begin("parseMsg") if DEBUG;
$incomingMessages->add($data);
$net->clientSend($_) for $packetParser->process(
$incomingMessages, $packetParser
);
$net->clientFlush() if (UNIVERSAL::isa($net, 'Network::XKoreProxy'));
Benchmark::end("parseMsg") if DEBUG;
}
.......................
What mean is the statement of following ?
Code: Select all
$net->clientSend($_) for $packetParser->process(
$incomingMessages, $packetParser
);
