… | … | ||
---|---|---|---|
3 | # the version command | 3 | # the version command |
4 | 4 | ||
5 | cf::client->attach ( | 5 | cf::client->attach ( |
6 | on_connect => sub { | 6 | on_connect => sub { |
7 | my ($ns) = @_; | 7 | my ($ns) = @_; |
8 | |||
9 | $ns->send_packet ("1234\x01\x00\x80\xff"); | ||
10 | 8 | ||
11 | $ns->send_packet ("version " . $cf::json_coder->encode ({ | 9 | $ns->send_packet ("version " . $cf::json_coder->encode ({ |
12 | server => "Deliantra Server", | 10 | server => "Deliantra Server", |
13 | serverver => cf::VERSION, | 11 | serverver => cf::VERSION, |
14 | })); | 12 | })); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |