📄 snac_04_14.html
字号:
<html>
<head>
<title>SNAC(04,14) client/server typing notification</title>
<style type="text/css">
body {background-color: white; font-size: 13px;}
td {font-size: 16px;}
</style>
</head>
<body bgcolor=white>
<table width=640 bgcolor=darkblue cellSpacing=0 cellPadding=0 border=0><tr><td><table width=100% cellSpacing=2 cellPadding=0 border=0><tr><td bgcolor=#4040FF >
<table width=100% cellSpacing=0 cellPadding=0 border=0>
<tr>
<td><b><font color="white">SNAC(04,14) </font></b></td>
<td width=70% align=right><b><font color="white">TYPING_NOTIFICATION </font></b></td>
</tr>
</table>
</td></tr>
</table>
</td></tr></table>
<table width=640 cellSpacing=0 cellPadding=0 border=0>
<tr>
<td>
<br>
This snac used by client and server for mini typing notification (MTN). Basically,
when you begin typing something you send a "typing begun" message, then a few
seconds later you send a "text typed" message, then after you actually
send the message, you send a "no more text has been typed" message. You also send
the "typing finished" message if you delete all the stuff you've typed.<br><br>
Remote clients know that your client supports MTN because the server appends an
empty type 0x000b TLV to all outgoing IMs. You tell the server you want this TLV
appended when you send the <a href="snac_04_02.html">SNAC(04,02)</a>.
Just set message flags bit4=1. Send and receive SNACs has the same type=0x14.
Here is the known notification types list:<br><br>
<font color=blue>0x0000</font> - typing finished sign<br>
<font color=blue>0x0001</font> - text typed sign<br>
<font color=blue>0x0002</font> - typing begun sign<br><br>
<table width=640 bgcolor=darkblue cellSpacing=0 cellPadding=0 border=0><tr><td><table width=100% cellSpacing=2 cellPadding=0 border=0><tr><td bgcolor=#E9E9E9 >
<table width=100% cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td width=169> 00 04</td>
<td width=5> </td>
<td>word</td>
<td width=5> </td>
<td width=55%>SNAC family</td>
</tr>
<tr>
<td> 00 14</td>
<td> </td>
<td>word</td>
<td> </td>
<td>SNAC subtype</td>
</tr>
<tr>
<td> 00 00</td>
<td> </td>
<td>word</td>
<td> </td>
<td>SNAC flags</td>
</tr>
<tr>
<td> xx xx xx xx</td>
<td> </td>
<td>dword</td>
<td> </td>
<td>SNAC request-id</td>
</tr>
</table>
</td></tr>
<tr><td bgcolor=#E9E9E9>
<table width=100% cellSpacing=0 cellPadding=0 align=center border=0>
<tr>
<td width=169> 00 00 00 00<br> 00 00 00 00</td>
<td width=5> </td>
<td valign=top>qword</td>
<td width=5> </td>
<td width=55% valign=top>notification-id cookie</td>
</tr>
<tr>
<td> xx xx</td>
<td> </td>
<td>word</td>
<td> </td>
<td>notification channel</td>
</tr>
<tr>
<td> xx</td>
<td> </td>
<td>byte</td>
<td> </td>
<td>screenname string length</td>
</tr>
<tr>
<td> xx ..</td>
<td> </td>
<td>string</td>
<td> </td>
<td>screenname string</td>
</tr>
<tr>
<td> xx xx</td>
<td> </td>
<td>word</td>
<td> </td>
<td>notification type (see above)</td>
</tr>
</table>
</td></tr></table>
</td></tr></table></td></tr></table>
<br>Example SNAC dump with flap header:
<table width=640 bgcolor=darkblue cellSpacing=0 cellPadding=0 border=0><tr><td><table width=100% cellSpacing=2 cellPadding=0 border=0><tr>
<td bgcolor=#E9E9E9>
<font size=3><pre style="font-size: 13px">
2A 02 38 C2 00 1E 00 04 00 14 00 00 00 00 00 14 *.8.............
00 00 00 00 00 00 00 00 00 01 07 36 32 31 38 38 ...........62188
39 35 00 02 95..
</pre></font>
</td></tr></table>
</td></tr></table>
<br>
<table width=640 bgcolor=darkgray cellSpacing=0 cellPadding=0 border=0><tr><td><table width=100% cellSpacing=2 cellPadding=0 border=0><tr><td bgcolor=#E9E9E9 ><table width=100% cellSpacing=0 cellPadding=0 border=0>
<tr><td align=center valign=middle><b><font color=black size=2>
<a href="index.html" target="_top">Main</a> |
<a href="basic.html" target="_top">Basic</a> |
<a href="login.html" target="_top">Login</a> |
<a href="families.html" target="_top">Snaclist</a> |
<a href="sequences.html" target="_top">Sequences</a> |
<a href="lists.html" target="_top">Misc</a> |
<a href="changes.html" target="_top">Changes</a> |
<a href="credits.html" target="_top">Credits</a> |
<a href="terms.html" target="_top">Terms</a>
</font></b></td></tr></table>
</td></tr></table>
</td></tr></table>
<!--#include virtual="_bottom.htxt" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -