📄 protocol.config
字号:
/****************************** Aicaca Community Messenger Client*****************************
Copyright (C) Aicaca.com, All rights reserved.
Writer : Byung-ku, Cho (Aicaca)
E-mail : aicaca@hanmail.net
Personal Homepage URL : http://www.aicaca.com
Last Updated Date : September 25th, 2001
Programming Language : C#
Editor & Compiler : VisualStudio.NET Beta 2.0
Basic Classes : Socket & XML ...
*/
/****************************** Aicaca Messenger Virtual ID *****************************
1. Messenger Server
1) RootID : Messenger Server Main Thread ID
2) ClientID : Messenger Client Main Thread ID
3) ThreadID : Messenger Server Sub Thread ID
2. Messenger Client
1) RootID : Messenger Server Main Thread ID
2) LocalID : Current Messenger Client Main Thread ID
3) ClientID : Other Side Messenger Client Main Thread ID
4) ThreadID : Current Messenger Client Sub Thread ID
5) RemoteID : Other Side Messenger Client Sub Thread ID
*/
/****************************** Aicaca Messenger ID XML Structure *****************************
1. Sort : "WinServer" or "WinClient" or "WinDialog" or "WinFile" or "WinBoard"
2. Name : Current Thread Name
3. IP : Current Thread IP Address
4. Port : Current Thread Port Number
*/
/****************************** Aicaca Messenger Protocol *****************************
<Basic String>
rootSort = <rs> + Root Sort + </rs>
rootName = <rn> + Root Name + </rn>
rootIP = <ri> + Root IP + </ri>
rootPort = <rp> + Root Port + </rp>
rootID = <rid> + rootSort + rootName + rootIP + rootPort + </rid>
localSort = <ls> + Local Sort + </ls>
localName = <ln> + Local Name + </ln>
localIP = <li> + Local IP + </li>
localPort = <lp> + Local Port + </lp>
localID = <lid> + localSort + localName + localIP + localPort + </lid>
clientSort = <cs> + Client Sort + </cs>
clientName = <cn> + Client Name + </cn>
clientIP = <ci> + Client IP + </ci>
clientPort = <cp> + Client Port + </cp>
clientID = <cid> + clientSort + clientName + clientIP + clientPort + </cid>
threadSort = <ts> + Thread Sort + </ts>
threadName = <tn> + Thread Name + </tn>
threadIP = <ti> + Thread IP + </ti>
threadPort = <tp> + Thread Port + </tp>
threadID = <tid> + threadSort + threadName + threadIP + threadPort + </tid>
remoteSort = <es> + Remote Sort + </es>
remoteName = <en> + Remote Name + </en>
remoteIP = <ei> + Remote IP + </ei>
remotePort = <ep> + Remote Port + </ep>
remoteID = <eid> + remoteSort + remoteName + remoteIP + remotePort + </eid>
One Packet Basic Format = <ms> + Msg Sort + </ms> + Contents + "\n"
<Msg String>
#Client WinClient --> Root WinServer : Client Addr Request
ACCAR + localID + rootID
#Root WinDialog --> Client WinClient : Server Config Response
ACCFG + rootID + clientID + <Config> + Server XML Config String + </Config>
#Root WinDialog --> Client WinClient : Client Addr Response
ACCAS + rootID + clientID + <car> + clientID + ... + </car>
#Client WinDialog --> Client WinDialog : Sending Msg
ACMSG + threadID + remoteID + <body> + Message
#Client WinSendFile --> Client WinReceiveFile : Sending File Notice
ACFNO + threadID + remoteID + <fo> + originFileName + </fo> + <fl> + fileLength + </fl> + <body> + Message
#Client WinSendFile --> Client WinReceiveFile : Cancel File Notice
ACFCA + threadID + remoteID
#Client WinReceiveFile --> Client WinSendFile : Accept File Notice
ACFAC + threadID + remoteID + <fc> + changeFileName + </fc>
#Client WinReceiveFile --> Client WinSendFile : Reject File Notice
ACFRE + threadID + remoteID
#Client WinSendFile --> Client WinReceiveFile : Sending File
ACFIL + threadID + remoteID + <fc> + changeFileName + </fc> + <fl> + fileLength + </fl> + [File Stream]
#Client WinClient --> Client WinClient : Error Message
ACERR + threadID + remoteID + <body> + Message
#Client WinBoard --> Root WinBoard : Board List Request
ACBLI + localID + rootID + <xs> + Board Name + </xs>
#Client WinBoard --> Root WinBoard : Board Save Request
ACBSA + localID + rootID + <xs> + Board Name + </xs> + <xl> + Stream Length + </xl> + <xf> + File Name + </xf> + <xn> + File Length + </xn> + [Data Stream] + [File Stream]
#Client WinBoard --> Root WinBoard : Board Message Request
ACBME + localID + rootID + <xs> + Board Name + </xs> + <xi> + Record ID + </xi>
#Client WinBoard --> Root WinBoard : Board Delete Request
ACBDE + localID + rootID + <xs> + Board Name + </xs> + <xi> + Record ID + </xi>
#Client WinBoard --> Root WinBoard : Board Modify Request
ACBMO + localID + rootID + <xs> + Board Name + </xs> + <xl> + Stream Length + </xl> + <xi> + Record ID + </xi> + [Data Stream]
#Client WinBoard --> Root WinBoard : Board Reply Request
ACBRE + localID + rootID + <xs> + Board Name + </xs> + <xl> + Stream Length + </xl> + <xi> + Record ID + </xi> + <xf> + File Name + </xf> + <xn> + File Length + </xn> + [Data Stream] + [File Stream]
#Client WinBoard --> Root WinBoard : Board Search Request
ACBSE + localID + rootID + <xs> + Board Name + </xs> + <xk> + Search Keyword + </xk>
#Client WinBoard --> Root WinBoard : File Send Request
ACBFI + localID + rootID + <xo> + Board Name + </xo> + <xc> + Search Keyword + </xc>
#Root WinBoard --> Client WinBoard : Board List Response
ACXLI + rootID + clientID + <xs> + Board Name + </xs> + <xl> + Stream Length + </xl> + [Data Stream]
#Root WinBoard --> Client WinBoard : Board Message Response
ACXME + rootID + clientID + <xs> + Board Name + </xs> + <xl> + Stream Length + </xl> + [Data Stream]
#Root WinBoard --> Client WinBoard : File Send Response
ACXFI + rootID + clientID + <xc> + Board Name + </xc> + <xl> + File Length + </xl> + [File Stream]
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -