📄 ipmsg.html
字号:
IPMSG_GETABSENCEINFO Get absence sentence<br> IPMSG_SENDABSENCEINFO Send absence sentence<br><br> IPMSG_GETPUBKEY RSA Public Key Acquisition<br> IPMSG_ANSPUBKEY RSA Public Key Response<br><br> 2) Option flag (High 24 bits from command number 32 bits)<br><br> IPMSG_ABSENCEOPT Absence mode(Member recognition command)<br> IPMSG_SERVEROPT Server(Reserved)<br> IPMSG_DIALUPOPT Send individual member recognition command<br><br> IPMSG_SENDCHECKOPT Transmission check<br> IPMSG_SECRETOPT Sealed message<br> IPMSG_READCHECKOPT Sealed message check(added from ver8 )<br> IPMSG_PASSWORDOPT Lock<br> IPMSG_BROADCASTOPT Broadcast message<br> IPMSG_MULTICASTOPT Multi-cast(Multiple casts selection)<br> IPMSG_NEWMUTIOPT New version multi-cast(reserved)<br> IPMSG_AUTORETOPT Automatic response(Ping-pong protection)<br> IPMSG_NOLOGOPT No log files<br> IPMSG_NOADDLISTOPT Notice to the members outside of BR_ENTRY<br><br> IPMSG_FILEATTACHOPT File attachment<br> IPMSG_ENCRYPTOPT Code<br><br> IPMSG_NOPOPUPOPT (No longer valid)<br> IPMSG_RETRYOPT Re-send flag(Use when acquiring HOSTLIST)<br><br> 3) Extended code flag (hex format combination)<br><br> IPMSG_RSA_512<br> IPMSG_RSA_1024<br> IPMSG_RSA_2048<br> IPMSG_RC2_40<br> IPMSG_RC2_128<br> IPMSG_RC2_256<br> IPMSG_BLOWFISH_128<br> IPMSG_BLOWFISH_256<br> IPMSG_SIGN_MD5<br><br> 4) Extended files for attachment (fileattr low 8 bits)<br><br> IPMSG_FILE_REGULAR<br> IPMSG_FILE_DIR<br> IPMSG_FILE_RETPARENT<br> IPMSG_FILE_SYMLINK<br> IPMSG_FILE_CDEV<br> IPMSG_FILE_BDEV<br> IPMSG_FILE_FIFO<br> IPMSG_FILE_RESFORK<br><br> 5) Attachment file extended attribute(fileattr high 24 bits)<br><br> IPMSG_FILE_RONLYOPT<br> IPMSG_FILE_HIDDENOPT<br> IPMSG_FILE_EXHIDDENOPT<br> IPMSG_FILE_ARCHIVEOPT<br> IPMSG_FILE_SYSTEMOPT<br><br> 6) Extended file attribute for attachment file<br><br> IPMSG_FILE_UID<br> IPMSG_FILE_USERNAME<br> IPMSG_FILE_GID<br> IPMSG_FILE_GROUPNAME<br> IPMSG_FILE_PERM<br> IPMSG_FILE_MAJORNO<br> IPMSG_FILE_MINORNO<br> IPMSG_FILE_CTIME<br> IPMSG_FILE_MTIME<br> IPMSG_FILE_ATIME<br> IPMSG_FILE_CREATETIME<br><br> IPMSG_FILE_CREATOR<br> IPMSG_FILE_FILETYPE<br> IPMSG_FILE_FINDERINFO<br><br> IPMSG_FILE_ACL<br> IPMSG_FILE_ALIASFNAME<br> IPMSG_FILE_UNICODEFNAME<br><br><br>2.Command format(Use all character strings)<br><br> 1) Command(Format version-1)<br><br> Ver(1) : PacketNo : SenderName : SenderHost : CommandNo : AdditionalSection<br><br> 2) An example for Message Send/Receive by using the current command format<br><br> "1:100:shirouzu:jupiter:32:Hello"<br><br><br>3.Command process overview<br><br> 1) Member recognition<br><br> An IPMSG_BR_ENTRY command notifies a new entry to the current<br> members at start-up.<br><br> All members add the new member to their list after getting a notification message.<br> An IPMSG_ANSENTRY command sends a message back to the new member.<br><br> The new member gets the current member data by a<br> IPMSG_ANSENTRY command. All members can communicate as long as an<br> IP packet exists.<br><br> An IPMSG_BR_ABSENCE command broadcasts absence mode cancel or<br> nickname change to all members. However, an IPMSG_ANSENTRY command<br> does not send a message back, which is different from an IPMSG_BR_ENTRY<br> command.<br><br> IPMSG_BR_ENTRY, IPMSG_ANSENTRY, and IPMSG_BR_ABSENCE commands<br> use an IPMSG_ABSENCEOPT flag for absence mode. Input a nickname to<br> additional command.<br> Add an IPMSG_DIALUPOPT flag for dial-up users who can't be reached by<br> a broadcast command. A member recognition command needs to be<br> sent individually to the members with this optional flag.<br><br> (Extended group)IPMSG_BR_ENTRY and IPMSG_BR_ABSENCE commands<br> sends a group name by adding the new group name after the current<br> command format character strings (Input '\0' between the current<br> command and extended name).<br><br> 2) Send/Receive Message<br> Send Message uses an IPMSG_SENDMSG command that can input a message<br> in the extended area.<br> Receive Message sends back an IPMSG_RECVMSG command only<br> if an IPMSG_SENDCHECKOPT flag is ON. Input the original packet number<br> to the extended area.<br><br> Broadcast Message Send uses an IPMSG_BOADCASTOPT command<br> and an IPMSG_SENDMSG flag should be ON.<br> Auto-Send packet(absence notice) needs to be added to IPMSG_AUTORETOPT<br> for ping-pong protection. If either one or another packet is ON, then<br> confirmation/auto-send packet is not sent back.<br><br> Send Message Sealing needs to be an IPMSG_SECRETOPT packet ON.<br> In this case, Receive Message sends an IPMSG_READMSG command.<br> Input the original packet number to the extended area.<br><br> (Additional IPMSG_NOADDLISTOPT)<br> When receiving an IPMSG_SENDMSG packet from a host that is<br> not on your Send/Receive list, IPMsg will either confirm a host by<br> sending an IPMSG_BR_ENTRY command or add a host name to<br> the Send/Receive list.<br> However, single-shot Message Send/Receive action needs to be avoided.<br> Add an IPMSG_NOADDLISTOPT flag to an IPMSG_SENDMSG command.<br><br> (Additional IPMSG_READCHECKOPT from version-8 )<br> When an IPMSG_READMSG command contains an IPMSG_READCHECKOPT flag,<br> IPMsg process is the same as IPMSG_SENDMSG with an<br> IPMSG_SENDCHECKOPT flag.<br> However, Send Message uses an IPMSG_ANSREADMSG command,<br> not IPMSG_RECVMSG.<br><br> 3) Message Send/Receive 亅encrypted extension (Added in the version-9 )<br><br> Use the combination of Public-key(RSA) and common key(RC2/Blowfish).<br> (Encrypted extension area is used in hex format.)<br><br> (Public key acquisition)Send an IPMSG_GETPUBKEY command to Receive<br> Message. Receive Message gets an IPMSG_ANSPUBKEY that<br> means receiving RSA public key from Send Message.<br><br> IPMSG_GETPUBKEY/IPMSG_ANSPUBKEY both require the value which is<br> encryption capability (Exp. IPMSG_RSA_1024) flag uses "OR" at first<br> part of extension<br><br> In addition, In IPMSG_ANSPUBKEY, public key written as EE-NNNNNN<br> E=Exponent丄N=method)devide by ':'. and Input the Fdelimiter '-'<br> between E and N.<br><br> This sequence can be skipped after the 2nd Send/Receive process by<br> memorizing public key and encrypted data.<br> <br> (Encrypted message)After a sender creates a common key that is<br> supported both sender and receiver, a common key can encrypt a message.<br> In addition, a receiver's public key encrypts the common key.<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -