1.状态改变-发送udp消息到服务器--服务器更改你的状态 
  所有的朋友定时查询你的状态--做相应改变。
  数据传输是以udp的方式。

解决方案 »

  1.   

    Hi, friend, can you tell me how frequent should the user query the status changes usually?
      

  2.   

    Do you think it will cause a heavy network resource traffic overload relatively?
      

  3.   

    OICQ uses UDP, not TCP
    1. Send the status to the Server, and Server sends it to your friends.
    2. javax.swing.JEditorPane can read rtf/html/plain text
    3. IPs of your friends are loaded when your OICQ is started and they are online.
    If they are not online, your message are sent to the Server. When they become online, the Server will notify you and give you their new IPs, which will remain unchanged until they are out.
    4. IMHO, not necessarily needed.
    5. IMHO, no. What you need is to connect to the Server, not directly to each of your friends.All I replied was based on that you run the program on at least one server. If you wanna run it on terminator to terminator, it will be quite different.
      

  4.   

    so much English, I like!!!
      

  5.   

    Both English and Chinese are welcomed :)To shine:I agree with most of what you said. The problem is one of my groupmates disagreed with my previous plan, that was presented by you. Personally i think he knows nothing because he asserted that VB.Net is a C++ styled language. How difficult it was for me to try not to laugh!
      

  6.   

    Still there are some questions to you:1. Send the status to the Server, and Server sends it to your friends.
    ------------------------------------------------------------------
    Do the users automatically query the status changes periodically? Or the server by itself send all the status change information to the users?2. What's the advantages of UDP over TCP in such a situation? I would like to learn more than what I know now :)
      

  7.   

    I know almost nothing about .NET, but one of my classmates who share the shine333 ID with me here told me that .NET is a bit like java that it cannot make any executable file.
      

  8.   

    No, I wasn't meaning to ask the questions related to .NET. It's the problem with my groupmates but you and me. :)BTW: I am leaving for a while. Please help me on these questions if you would like to. If you wish, you can give some detailed and specified answers, either in English and Chinese. Thanks a lot for your kind help! I am in urgent need of such help