line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package POE::Component::YahooMessenger::Constants; |
2
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
39
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
BEGIN { |
5
|
1
|
|
|
1
|
|
6
|
use vars qw(@EXPORT @ISA); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
98
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6
|
require Exporter; |
8
|
1
|
|
|
|
|
22
|
@ISA = qw(Exporter); |
9
|
1
|
|
|
|
|
35
|
@EXPORT = qw($Default $MessageHeader $BodySeparater $Options |
10
|
|
|
|
|
|
|
$ReceiveEventCodes $ReceiveEventNames |
11
|
|
|
|
|
|
|
$SendEventCodes $SendEventNames |
12
|
|
|
|
|
|
|
$BodyCodes $BodyNames); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
6
|
use vars @EXPORT; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
338
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
$Default = { |
18
|
|
|
|
|
|
|
hostname => 'scs.yahoo.com', |
19
|
|
|
|
|
|
|
port => 5050, |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
$Options = { |
23
|
|
|
|
|
|
|
to_buddies => 1515563606, |
24
|
|
|
|
|
|
|
to_non_buddies => 1515563605, |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
$MessageHeader = 'YMSG'; |
28
|
|
|
|
|
|
|
$BodySeparater = "\xC0\x80"; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
$ReceiveEventCodes = { |
31
|
|
|
|
|
|
|
1 => 'goes_online', |
32
|
|
|
|
|
|
|
2 => 'goes_offline', |
33
|
|
|
|
|
|
|
3 => 'change_status', |
34
|
|
|
|
|
|
|
4 => 'change_normal_status', |
35
|
|
|
|
|
|
|
6 => 'receive_message', |
36
|
|
|
|
|
|
|
15 => 'new_buddy_alert', |
37
|
|
|
|
|
|
|
24 => 'conference_invitation', |
38
|
|
|
|
|
|
|
75 => 'toggle_typing', |
39
|
|
|
|
|
|
|
76 => 'server_is_alive', |
40
|
|
|
|
|
|
|
77 => 'receive_file', |
41
|
|
|
|
|
|
|
84 => 'cram_auth_fail', |
42
|
|
|
|
|
|
|
85 => 'receive_buddy_list', |
43
|
|
|
|
|
|
|
87 => 'challenge_start', |
44
|
|
|
|
|
|
|
}; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
$ReceiveEventNames = { reverse %$ReceiveEventCodes }; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
$SendEventCodes = { |
49
|
|
|
|
|
|
|
%$ReceiveEventCodes, |
50
|
|
|
|
|
|
|
6 => 'send_message', |
51
|
|
|
|
|
|
|
77 => 'send_file', |
52
|
|
|
|
|
|
|
84 => 'challenge_response', |
53
|
|
|
|
|
|
|
131 => 'add_buddy', |
54
|
|
|
|
|
|
|
132 => 'delete_buddy', |
55
|
|
|
|
|
|
|
}; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
$SendEventNames = { reverse %$SendEventCodes }; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
$BodyCodes = { |
60
|
|
|
|
|
|
|
0 => 'my_id', |
61
|
|
|
|
|
|
|
1 => 'id', |
62
|
|
|
|
|
|
|
2 => 'login_nickname', |
63
|
|
|
|
|
|
|
3 => 'new_buddy_id', |
64
|
|
|
|
|
|
|
4 => 'from', |
65
|
|
|
|
|
|
|
5 => 'to', |
66
|
|
|
|
|
|
|
6 => 'crypt_salt', |
67
|
|
|
|
|
|
|
7 => 'buddy_id', |
68
|
|
|
|
|
|
|
8 => 'number_of_online_buddies', |
69
|
|
|
|
|
|
|
10 => 'status_code', |
70
|
|
|
|
|
|
|
11 => 'session_id', |
71
|
|
|
|
|
|
|
13 => 'live', |
72
|
|
|
|
|
|
|
14 => 'message', |
73
|
|
|
|
|
|
|
15 => 'received_time', |
74
|
|
|
|
|
|
|
16 => 'error_message', |
75
|
|
|
|
|
|
|
19 => 'status_message', |
76
|
|
|
|
|
|
|
20 => 'download_url', |
77
|
|
|
|
|
|
|
27 => 'filename', |
78
|
|
|
|
|
|
|
28 => 'filesize', |
79
|
|
|
|
|
|
|
47 => 'busy_code', |
80
|
|
|
|
|
|
|
49 => 'command_name', # XXX 'FILEXFER' |
81
|
|
|
|
|
|
|
50 => 'invitation_from', |
82
|
|
|
|
|
|
|
52 => 'invitation_with', # XXX |
83
|
|
|
|
|
|
|
53 => 'download_filename', |
84
|
|
|
|
|
|
|
54 => 'protocol', # XXX 'MSG1.0' |
85
|
|
|
|
|
|
|
57 => 'conference_name', |
86
|
|
|
|
|
|
|
58 => 'invitation_message', |
87
|
|
|
|
|
|
|
59 => 'cookie', |
88
|
|
|
|
|
|
|
65 => 'group', |
89
|
|
|
|
|
|
|
87 => 'buddy_list', |
90
|
|
|
|
|
|
|
94 => 'challenge_string', |
91
|
|
|
|
|
|
|
96 => 'crypted_response', |
92
|
|
|
|
|
|
|
}; |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
$BodyNames = { reverse %$BodyCodes }; |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
1; |