IM.md

process of instant message:

A and B:
A open client, log in the account , connect to the server
A sends connection information to server including IP address, port number of current using computer.

server:
create temporary file containint connection information for you and a list of contact of you.
check if any of contact are online. if finds, server send the connection information of that contacts to you.
server also send your connection information to that contacts.

A:
when you get the connection information of the contacts, the status of that contacts change to "online"
click the contact to begin end to end communication
enter message and hit enter
data will directly transfer to that contact, don't go via server.
all the message is stored in each computer

A:
close client,
client send message to server to terminate.
server sends message to all contact who is online, you are off-line.
server remove the temporary connection file

this is the messages between my and me

I'm scared when I open tim in the afternoon, I think I get wrong the time, and miss the appointment. but my friends said he didn't get it wrong, what he saw the same to me.
so I wonder why the messages vary from its orignal one?
doesn't he history message store locally or in the server? why the server collects the wrong order of messages ?

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容