即时通讯系统设计英文论文
3.3.4.1.2 ClientSocketList::Add(CClientSocket *add,CString ID)
Add the connected client socket to the socket list
3.3.4.1.3 ClientSocketList::Delete(CClientSocket *del)
Delete the closed client socket from the socket list
3.3.4.1.4 CClientSocket::ReturnID()
Create the user Information table
3.3.4.1.5 CClientSocket::OnClose(int nErrorCode)
Update status and create socket table
3.3.4.1.6 CListenSocket::OnAccept(int nErrorCode)
Accept the connect socket
3.3.4.2 The client:
3.3.4.2.1 CListenSocket::OnAccept(int nErrorCode)
Add Friends
3.3.4.2.2 CHHNewClientDlg::OnRegister()
Register
3.3.4.2.3 CHHNewClientDlg::OnLogin()
Login
3.3.4.2.4 CClientDialog::OnDblclkTree1(NMHDR* pNMHDR, LRESULT* pResult)
Get Chat Dialog
3.3.4.2.5 CChatDialog::OnSend()
Send message
3.3.4.2.6 CChatDialog::OnTranfile()
Transfer file
3.3.4.2.7 CChatDialog::OnClose()
Close the Dialog
3.4 Features
3.4.1 The server
The server manages the client message and saves and updates the information of the user to the user information file, also saves the information of the friends, and the information of the current socket.
3.4.1.1 Start
Create the socket with specific port and listen to the port .So it can get the information from the client socket which connected to the server. Once the connect is built, it can handle the specific service for the client.
3.4.1.2 Stop
Close the socket and stop listen to the client, so the port is not available. The client cut from the sever.
3.4.1.3 Show the Friend relationship database
Can list all the user friend relationship information to administrators, the administrators can modification the user friend relationship information or delete the user friend relationship by administrators need.
3.4.1.4 Show the User information database
Can list all the user information to administrators, the administrators can modification the user information or delete the user by administrators need.
3.4.1.5 Show the online users IP and socket
Can list all the online user IP and socket, and list all the user last time user the IP and socket
3.4.1.6 Back up the files
Can back up the all the files each stop the server, when the server have problem we can recover all the file.3.4.2 The client
http://www.751com.cn/socket which connected to the severs with specific port and IP address .Once the connection is build ,it can send request to the server then get the relevant service from the server.
3.4.2.1 Text chat
The user can choose anyone from her friend list to do the text chat. Actually if the friends are online the picture of them is brighter than others who is not online. When the friend sends text information to you, it will have the specific sound to inform you, also the picture of the friend will have a litter change on the color.
3.4.2.2 Add friend
The user can add friend by pressing the specific button then all the user who has registered will display, and you can choose anyone to be your friends ,at the same time that user also will add you to his/her friend list.
3.4.2.3 Audio chat
When the user can using the audio chatting with their fiends , it means at both side will record and play simultaneously, and send the information to the server,the server will send this information to the specific user who already request to connect to each other..
3.4.2.4 Online offline setting
When the user login, the status of yours will be changed on your friends dialog. The user also can change their status by themselves, like the online、offline、away and ,that all can effect your status on you friends dialog.
3.4.2.5 File transform
The user can use the file transform function to send the file to you friend.
3.4.2.6 Add group
The user can build the group .then add some user to this group. The member of the group can chat together, they can share the resource and the text record and the audio can be see or listen by all member in the group.
3.4.2.7 Group chat
The user can chatting in the group, that you and you friend can chatting like the public form.
3.4.2.8 See detail information of the friends
The user can see the detail information of their friends.
CHAPTER VIRESULTS AND DISCUSSION
上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页
VC++即时通讯系统设计英文论文 第6页下载如图片无法显示或论文不完整,请联系qq752018766