📄 ipmsg.html
字号:
<br><br> (Encrypted message transmission) IPMSG_ENCRYPTOPT is used in<br> IPMSG_SENDMSG. At the first part of extension, input the value which<br> is 'or' resoult from Convination of public key and common key type .<br> Then use common key which encrypt with public key devide by ':'.<br> Then input message which is eccrypted by public key devide by ':'.<br> If both supports IPMSG_SIGN_XXX, then add ':' and signeture.<br><br> Also, In the method of encode padding, PKCS#1ECB key is used for RSA,<br> PKCS#5 CBC common key is used for RC2/blowfish.<br><br> Also, The Packet related to Entry manifestation the capability of<br> ecryption support using IPMSG_ENCRYPTOPT<br><br> 4) Extension with file attachment(Available from version-9 )<br><br> An IPMSG_SENDMSG command with an IPMSG_FILEATTACHOPT flag for<br> File transfer (download permission)notification sends a message<br> with attachment.<br> Input '\0' after the message and attachment file data.<br> <br><br> fileID:filename:size:mtime:fileattr[:extend-attr=val1<br> [,val2...][:extend-attr2=...]]:\a:fileID...<br> (size, mtime, and fileattr describe hex format.<br> If a filename contains ':', please replace with "::".)<br><br> When Receive Message downloads an attachment file, an IPMSG_GETFILEDATA<br> command requests a data transmission packet to the TCP port that is the same number<br> as the UDP sending port number. Input packetID:fileID: offset to the extended area.<br> (Use all hex format.)<br> File Transfer side receives the request. After recognizing that it's a correct request,<br> then send the specified data (no format)<br><br> When the data receiving side downloads a hierarchical attachment file,<br> use an IPMSG_GETDIRFILES command and input a packetID:fileID<br> to the extended area and send a data transmission request packet.<br> (all hex format)<br><br> Data sending side sends the following hierarchical data format.<br> header-size:filename:file-size:fileattr[:extend-attr=val1<br> [,val2...][:extend-attr2=...]]:contents-data<br> Next headersize: Next filename...<br> (All hex format except for filename and contetns-data)<br><br> header-size is from the beginning of header-size to the delimiter ':'<br> that is before contents-data. extend-attr can be omitted and used multiple<br> extended attributes. Use '=' for data input.<br><br> When fileattr is IPMSG_FILE_DIR, IPMsg recognizes that it is automatically<br> in the directory, the next file data is after the directory.<br><br> When fileattr is IPMSG_FILE_RETPARENT, IMPsg recognizes that it returns<br> to the parent directory. In this case, File name is always "." and the attribute<br> value is the current directory data.<br><br> Sending process starts from the attachment directly and returns the<br> IPMSG_FILE_RETPARENT command to the attachment directory.<br><br> Add an IPMSG_FILEATTACHOPT flag for an Entry packet to support the<br> attachment file.<br><br> 5) Other commands<br><br> When acquiring different versions, send an IPMSG_GETINFO command.<br> Receiving side sends the version information character string to<br> extended area.<br><br> Send an IPMSG_GETABSENCEINFO command for acquiring an absence message.<br> Receiving side sends an IPMSG_SENDABSENCEINFO back if the status is absence mode.<br> If the status is not absence mode, a character string "Not absence mode" will be sent back.<br><br> 6) Confirmation/Retry<br><br> If a confirmation packet for IPMSG_SENDMSG or IPMSG_RECVMSG is not delivered<br> within a specified time, then it will be sent again.<br> A number of retry actions or interval period is depended on the current condition.<br><br><br>4. Other<br><br> 1) Linefeed<br><br> Linefeed characters in Send Message is standardized with UNIX type ('0x0a').<br> Please change if needed.<br><br> 2) Delimiter ':'<br><br> ':' is used as a delimiter. You can't use this delimiter for user name<br> and host name.<br> If the use/host names contain a ':', please replace with another sign,<br> for an example ';'.<br> Although using this delimiter isn't problem as yet, I may create an<br> escape sequence.<br> <br><br> 3) Kanji codes<br><br> SJIS<br><br><br>5. Contact e-mail address<br><br> E-Mail <a href="mailto:shirouzu@h.email.ne.jp">shirouzu@h.email.ne.jp</a><br><br><br>Note<br> See ipmsg.h for command codes.<br> Please e-mail me your comments and suggestions.[/quote]<br> </div></td></tr></tbody></table><p style="margin: 5px; line-height: 150%;"> </p></td></tr> <tr><td height="25"><font color="#000066"> 发表于: 2007-12-27,修改于: 2007-12-27 09:12 已浏览663次,有评论0条</font><a href="http://blog.chinaunix.net/u2/star.php?blogid=24478&artid=451091" id="star" onclick="NewWindows(this.href);return false;" title="推荐这篇文章">推荐</a><a href="http://blog.chinaunix.net/u2/complaint.php?blogid=24478&artid=451091" id="complaint" onclick="NewWindows(this.href);return false;" title="投诉这篇文章">投诉</a></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><br><table style="border-collapse: collapse;" width="100%" align="center" border="1" bordercolor="#bbf0ff" cellpadding="0" cellspacing="0"><tbody><tr><td background="ipmsg_files/bg_line.gif" height="28"> <b>网友评论</b></td></tr><tr><td align="center"><table style="border-collapse: collapse; color: rgb(0, 102, 204);" width="100%" border="0" cellpadding="0" cellspacing="0"> </table></td></tr></tbody></table><br><table style="border-collapse: collapse;" width="100%" align="center" border="1" bordercolor="#bbf0ff" cellpadding="0" cellspacing="0"><tbody><tr><td background="ipmsg_files/bg_line.gif" height="28"> <b>发表评论</b></td></tr><tr><td bgcolor="#ffffff" height="1"></td></tr><tr><td align="center" bgcolor="#ffffff"> <iframe name="comment" src="ipmsg_files/comment.html" width="600" frameborder="0" height="160"></iframe> </td></tr></tbody></table><br><br></td><td width="10"></td></tr></tbody></table><table style="border-collapse: collapse;" width="950" align="center" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td height="50"></td></tr><tr><td align="center"> <br><p>Copyright © 2001-2006 ChinaUnix.net All Rights Reserved<br></p><p>感谢所有关心和支持过ChinaUnix的朋友们<br>页面生成时间:0.1112</p><p><a href="http://www.miibeian.gov.cn/" target="_blank">京ICP证041476号</a></p></td></tr></tbody></table></center></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -