⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipmsg.html

📁 linux程序学习里面全是一些关于linux方面的源代码
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<br><br>&nbsp; &nbsp; (Encrypted message transmission) IPMSG_ENCRYPTOPT is used in<br>&nbsp; &nbsp; IPMSG_SENDMSG. At the first part of extension, input the value which<br>&nbsp; &nbsp; is 'or' resoult from Convination of public key and common key type .<br>&nbsp; &nbsp; Then use common key which encrypt with public key devide by ':'.<br>&nbsp; &nbsp; Then input message which is eccrypted by public key devide by ':'.<br>&nbsp; &nbsp; If both supports IPMSG_SIGN_XXX, then add ':' and signeture.<br><br>&nbsp; &nbsp; Also, In the method of encode padding, PKCS#1ECB key is used for RSA,<br>&nbsp; &nbsp; PKCS#5 CBC common key is used for RC2/blowfish.<br><br>&nbsp; &nbsp; Also, The Packet related to Entry manifestation the capability of<br>&nbsp; &nbsp; ecryption support using IPMSG_ENCRYPTOPT<br><br>&nbsp;&nbsp;4) Extension with file attachment(Available from version-9 )<br><br>&nbsp; &nbsp; An IPMSG_SENDMSG command with an IPMSG_FILEATTACHOPT flag for<br>&nbsp; &nbsp; File transfer (download permission)notification sends a message<br>&nbsp; &nbsp; with attachment.<br>&nbsp; &nbsp; Input '\0' after the message and attachment file data.<br>&nbsp; &nbsp;<br><br>&nbsp; &nbsp; fileID:filename:size:mtime:fileattr[:extend-attr=val1<br>&nbsp; &nbsp; [,val2...][:extend-attr2=...]]:\a:fileID...<br>&nbsp; &nbsp; (size, mtime, and fileattr describe hex format.<br>&nbsp; &nbsp;&nbsp; &nbsp;If a filename contains ':', please replace with "::".)<br><br>&nbsp; &nbsp; When Receive Message downloads an attachment file, an IPMSG_GETFILEDATA<br>&nbsp; &nbsp; command requests a data transmission packet to the TCP port that is the same number<br>&nbsp; &nbsp; as the UDP sending port number. Input packetID:fileID: offset to the extended area.<br>&nbsp; &nbsp; (Use all hex format.)<br>&nbsp; &nbsp; File Transfer side receives the request. After recognizing that it's a correct request,<br>&nbsp; &nbsp; then send the specified data (no format)<br><br>&nbsp; &nbsp; When the data receiving side downloads a hierarchical attachment file,<br>&nbsp; &nbsp; use an IPMSG_GETDIRFILES command and input a packetID:fileID<br>&nbsp; &nbsp; to the extended area and send a data transmission request packet.<br>&nbsp; &nbsp; (all hex format)<br><br>&nbsp; &nbsp; Data sending side sends the following hierarchical data format.<br>&nbsp; &nbsp; header-size:filename:file-size:fileattr[:extend-attr=val1<br>&nbsp; &nbsp; [,val2...][:extend-attr2=...]]:contents-data<br>&nbsp; &nbsp; Next headersize: Next filename...<br>&nbsp; &nbsp; (All hex format except for filename and contetns-data)<br><br>&nbsp; &nbsp; header-size is from the beginning of header-size to the delimiter ':'<br>&nbsp; &nbsp; that is before contents-data. extend-attr can be omitted and used multiple<br>&nbsp; &nbsp; extended attributes. Use '=' for data input.<br><br>&nbsp; &nbsp; When fileattr is IPMSG_FILE_DIR, IPMsg recognizes that it is automatically<br>&nbsp; &nbsp; in the directory, the next file data is after the directory.<br><br>&nbsp; &nbsp; When fileattr is IPMSG_FILE_RETPARENT, IMPsg recognizes that it returns<br>&nbsp; &nbsp; to the parent directory. In this case, File name is always "." and the attribute<br>&nbsp; &nbsp; value is the current directory data.<br><br>&nbsp; &nbsp; Sending process starts from the attachment directly and returns the<br>&nbsp; &nbsp; IPMSG_FILE_RETPARENT command to the attachment directory.<br><br>&nbsp; &nbsp; Add an IPMSG_FILEATTACHOPT flag for an Entry packet to support the<br>&nbsp; &nbsp; attachment file.<br><br>&nbsp;&nbsp;5) Other commands<br><br>&nbsp; &nbsp; When acquiring different versions, send an IPMSG_GETINFO command.<br>&nbsp; &nbsp; Receiving side sends the version information character string to<br>&nbsp; &nbsp; extended area.<br><br>&nbsp; &nbsp; Send an IPMSG_GETABSENCEINFO command for acquiring an absence message.<br>&nbsp; &nbsp; Receiving side sends an IPMSG_SENDABSENCEINFO back if the status is absence mode.<br>&nbsp; &nbsp; If the status is not absence mode, a character string "Not absence mode" will be sent back.<br><br>&nbsp;&nbsp;6) Confirmation/Retry<br><br>&nbsp; &nbsp; If a confirmation packet for IPMSG_SENDMSG or IPMSG_RECVMSG is not delivered<br>&nbsp; &nbsp; within a specified time, then it will be sent again.<br>&nbsp; &nbsp; A number of retry actions or interval period is depended on the current condition.<br><br><br>4. Other<br><br>&nbsp;&nbsp;1) Linefeed<br><br>&nbsp; &nbsp; Linefeed characters in Send Message is standardized with UNIX type ('0x0a').<br>&nbsp; &nbsp; Please change if needed.<br><br>&nbsp;&nbsp;2) Delimiter ':'<br><br>&nbsp; &nbsp; ':' is used as a delimiter. You can't use this delimiter for user name<br>&nbsp; &nbsp; and host name.<br>&nbsp; &nbsp; If the use/host names contain a ':', please replace with another sign,<br>&nbsp; &nbsp; for an example ';'.<br>&nbsp; &nbsp; Although using this delimiter isn't problem as yet, I may create an<br>&nbsp; &nbsp; escape sequence.<br>&nbsp; &nbsp;<br><br>&nbsp;&nbsp;3) Kanji codes<br><br>&nbsp; &nbsp; SJIS<br><br><br>5. Contact e-mail address<br><br>&nbsp; &nbsp; E-Mail <a href="mailto:shirouzu@h.email.ne.jp">shirouzu@h.email.ne.jp</a><br><br><br>Note<br>&nbsp; &nbsp; See ipmsg.h for command codes.<br>&nbsp; &nbsp; 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">&nbsp;发表于: 2007-12-27,修改于: 2007-12-27 09:12&nbsp;已浏览663次,有评论0条</font><a href="http://blog.chinaunix.net/u2/star.php?blogid=24478&amp;artid=451091" id="star" onclick="NewWindows(this.href);return false;" title="推荐这篇文章">推荐</a><a href="http://blog.chinaunix.net/u2/complaint.php?blogid=24478&amp;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">&nbsp; <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">&nbsp; <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 &#169; 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 + -