<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ahoj</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Dělám si takovou vlastní verzi icq. Už to umí
posílat zprávy, ale pořád mi nefunguje příjímání a fakt nevím jak to
zprovoznit.</FONT></DIV>
<DIV><FONT face=Arial size=2>Když mi někdo pošle zprávu, přijde mi to ve
tvaru:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>☼ħ ▒¶ ☺
268803181 ♠ ☺ ☻ P ♠ ♦► ☺ ♣ ♦AčĘ_ ↔ ☺►îŘdďGV┬U˛§▓÷Â↕,C ☼
♦ >Ś<BR> ♥ ♦F→4┬ ☻ ↕♣☺
☺☺☺☺ funguj!
♂ ▬ ♦F→sY ‼ ☺‼</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>a kod by měl být:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>def prijmi(self):</FONT></DIV>
<DIV><FONT face=Arial size=2> uin_len
= struct.unpack('B',
data[0x0a])[0]<BR> msg_len =
struct.unpack('!H', data[0x48:0x4a])[0] -
0x04<BR> fmt = self.fmt %
(uin_len, msg_len)<BR> u =
struct.unpack(fmt, data)<BR>
self.uin = u[2]<BR>
self.msg = u[4]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ale to mi vyhodí chybu:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Traceback (most recent call last):<BR> File
"C:\Documents and Settings\Blu\Plocha\py-icq-0.0.1\py-icq\src\main.py", l<BR>ine
379, in ?<BR> sys.exit(start(sys.argv))<BR> File
"C:\Documents and Settings\Blu\Plocha\py-icq-0.0.1\py-icq\src\main.py", l<BR>ine
332, in start<BR> conn.main_loop()<BR> File
"C:\Documents and Settings\Blu\Plocha\py-icq-0.0.1\py-icq\src\main.py", l<BR>ine
82, in main_loop<BR> self.handle_server_cmd(snac)<BR>
File "C:\Documents and Settings\Blu\Plocha\py-icq-0.0.1\py-icq\src\main.py",
l<BR>ine 131, in handle_server_cmd<BR> m =
proto.CMsgIn(snac.data)<BR> File "C:\Documents and
Settings\Blu\Plocha\py-icq-0.0.1\py-icq\src\proto.py",<BR>line 289, in
__init__<BR> u = struct.unpack(fmt, data)<BR>struct.error:
unpack str size does not match format</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Vubec nevím jak to zprovoznit a jsem vděčný za
každou radu.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Blujacker</FONT></DIV></BODY></HTML>