The embodiment of the invention discloses a method for information interaction: the first terminal transmits the first registration information to the server, the server sends the first confirmation information to the first terminal, the second terminal to send second registration information to the server, the server sends a confirmation message to the second terminal of the second. The server sends the state information of the first terminal to the second terminal, the server sends the state information of the second terminal to the first terminal, data communication and the first terminal and the second terminal. This is the first terminal and the second terminal are registered on the server, the server respectively first terminal state information is sent to the second terminal, the second terminal state information is sent to the first terminal, the first terminal can communicate with the terminal second, improve the user experience.
【技术实现步骤摘要】
本专利技术涉及通信领域,尤其涉及一种信息交互的方法。
技术介绍
在现有的通信编码方式里面,每一个通信装置都对应不同的编码规则,有国际标准的http、FTP等协议,也有根据具体需求构建在这些标准协议上的自定义的通信格式。这些协议包罗万象,组成了今天的网络。但是,不同的通信装置若使用不同的协议,则双方不能进行数据通信,双方必须采用相同的通信协议才能够实现数据通信。现有很多自定义的通信格式无法使得不同通信装置按照需求进行定义,导致通信难度增大,且无法保证通信的安全性,影响了用户体验。
技术实现思路
本专利技术实施例提供了一种信息交互的方法,用于实现终端之间进行数据通信,提高用户体验。本专利技术实施例所提供的信息交互的方法包括:第一终端发送第一注册信息给服务器;所述服务器发送第一确认信息给所述第一终端;第二终端发送第二注册信息给所述服务器;所述服务器发送第二确认信息给所述第二终端;所述服务器将所述第一终端的状态信息发送给所述第二终端;所述服务器将所述第二终端的状态信息发送给所述第一终端;所述第一终端与所述第二终端进行数据通信。其中,所述第一终端的状态信息为在线状态信息。其中,所述第二终端的状态信信息为在线状态信息。其中,所述第一注册信息包括所述第一终端的身份标识。其中,所述第二注册信息包括所述第二终端的身份标识。其中,所述第一终端与所述第二终端进行数据通信,包括:所述第一终端与所述第二终端进行文字传输,或者进行文件传输,或者进行音频传输,或者进行多媒体视频传输。本专利技术实施例中,第一终端发送第一注册信息给服务器,所述服务器发送第一确认信息给所述第一终端,第二终端发 ...
【技术保护点】
一种信息交互的方法,其特征在于,所述方法包括:第一终端发送第一注册信息给服务器;所述服务器发送第一确认信息给所述第一终端;第二终端发送第二注册信息给所述服务器;所述服务器发送第二确认信息给所述第二终端;所述服务器将所述第一终端的状态信息发送给所述第二终端;所述服务器将所述第二终端的状态信息发送给所述第一终端;所述第一终端与所述第二终端进行数据通信。
【技术特征摘要】
1.一种信息交互的方法,其特征在于,所述方法包括:第一终端发送第一注册信息给服务器;所述服务器发送第一确认信息给所述第一终端;第二终端发送第二注册信息给所述服务器;所述服务器发送第二确认信息给所述第二终端;所述服务器将所述第一终端的状态信息发送给所述第二终端;所述服务器将所述第二终端的状态信息发送给所述第一终端;所述第一终端与所述第二终端进行数据通信。2.根据权利要求1所述的方法,其特征在于,所述第一终端的状态信息为在线状态信息。3....
【专利技术属性】
技术研发人员:焦玉海,
申请(专利权)人:深圳思路名扬通讯技术股份有限公司,
类型:发明
国别省市:广东;44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。