tailieunhanh - Instant Messaging in Java phần 5
Nó cung cấp cơ chế như các lược đồ, các DTD, và không gian tên cho phép người dùng để tạo ra các định nghĩa tùy chỉnh của văn bản XML cho sử dụng riêng của tương quan của nhà nước của các mô phỏng Monte Carlo Hamilton rơi nhanh hơn rất nhiều với thời gian mô phỏng của phương pháp Langevin | 140 CHAPTER 5 The presence protocols The groupchat server associates my JabbeiD with the nickname Smirk in its own internal group list. It then propagates the presence status of all group members to all group members. Since lin now a group member the server will send me this update presence to iain@ work from java-users@ smirk7 The server will typically also send a welcome message to the group message to iain@ work from-java-users@ type groupchat body smirk has joined java-users body message Notice that the sender is the groupchat server not a groupchat participant. Now let say my friend Hieu also joins java-users jure by sending presence from hieu@ work to java-users@ RunningMan iain@host work smirk groupchat Server hieu@host work RunningMan presence to group@host RunningMan presence from group@host RunningMan message RunningMan joined from group@host presence from group@host RunningMan presence from group@host smirk message RunningMan joined from group@host Figure The user hieu joins the group named group with the nickname RunningMan. The server must ensure that both hieu and lain are informed of the new list member RunningMan. In addition hieu is sent a presence packet from list member smirk so he is aware of the presence of all list members. Notice all presence and message packets are from groupchat addresses. Hieu receives from the server presence to hieu@ work from java-users@groups. smirk7 presence to hieu@ work from java-users@groups. RunningMan7 message to hieu@ work 140 CHAPTER 5 The presence protocols The groupchat server associates my JabbeiD with the nickname Smirk in its own internal group list. It then propagates the presence status of all group members to all group members. Since lin now a group member the server will send me this update presence
đang nạp các trang xem trước